From a92bf2b0a496a5a692a3acc78589ce9fd174cdb0 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 23 Apr 2024 13:22:57 +0000 Subject: [PATCH] Automated commit: Import JSON schemas --- .../chargebee/v1/chargebee-v1-issues.txt | 12 + .../chargebee/v1/chargebee-v1-tables.yml | 1 + .../schemas/chargebee/v1/json/coupons.json | 134 +- .../schemas/chargebee/v1/json/customers.json | 18 + .../schemas/chargebee/v1/json/events.json | 3364 ++++++++--------- .../schemas/chargebee/v1/json/invoices.json | 1 - .../chargebee/v1/json/subscriptions.json | 356 +- 7 files changed, 1896 insertions(+), 1990 deletions(-) create mode 100644 _data/taps/schemas/chargebee/v1/chargebee-v1-issues.txt diff --git a/_data/taps/schemas/chargebee/v1/chargebee-v1-issues.txt b/_data/taps/schemas/chargebee/v1/chargebee-v1-issues.txt new file mode 100644 index 000000000..481a9a66f --- /dev/null +++ b/_data/taps/schemas/chargebee/v1/chargebee-v1-issues.txt @@ -0,0 +1,12 @@ +Key addon_ids not found in _data/taps/schemas/chargebee/v1/json/coupons.json +Key plan_ids not found in _data/taps/schemas/chargebee/v1/json/coupons.json +Key content.subscription.addons.id not found in _data/taps/schemas/chargebee/v1/json/events.json +Key content.subscription.charged_event_based_addons.id not found in _data/taps/schemas/chargebee/v1/json/events.json +Key content.subscription.event_based_addons.id not found in _data/taps/schemas/chargebee/v1/json/events.json +Key content.coupon.plan_ids not found in _data/taps/schemas/chargebee/v1/json/events.json +Key content.subscription.plan_id not found in _data/taps/schemas/chargebee/v1/json/events.json +Key addons.id not found in _data/taps/schemas/chargebee/v1/json/subscriptions.json +Key charged_event_based_addons.id not found in _data/taps/schemas/chargebee/v1/json/subscriptions.json +Key event_based_addons.id not found in _data/taps/schemas/chargebee/v1/json/subscriptions.json +Key plan_id not found in _data/taps/schemas/chargebee/v1/json/subscriptions.json +Key gift_id not found in _data/taps/schemas/chargebee/v1/json/subscriptions.json diff --git a/_data/taps/schemas/chargebee/v1/chargebee-v1-tables.yml b/_data/taps/schemas/chargebee/v1/chargebee-v1-tables.yml index 41963b3e1..4e5eecc2d 100644 --- a/_data/taps/schemas/chargebee/v1/chargebee-v1-tables.yml +++ b/_data/taps/schemas/chargebee/v1/chargebee-v1-tables.yml @@ -318,3 +318,4 @@ tables: replication-method: Key-based Incremental primary-key: id replication-key: updated_at +tap-repo-schemas: true diff --git a/_data/taps/schemas/chargebee/v1/json/coupons.json b/_data/taps/schemas/chargebee/v1/json/coupons.json index f3bceea22..dcf405d87 100644 --- a/_data/taps/schemas/chargebee/v1/json/coupons.json +++ b/_data/taps/schemas/chargebee/v1/json/coupons.json @@ -1,24 +1,6 @@ { "additionalProperties": false, "properties": { - "addon_constraint": { - "type": [ - "null", - "string" - ] - }, - "addon_ids": { - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - }, "apply_discount_on": { "type": [ "null", @@ -85,22 +67,110 @@ "string" ] }, - "included_in_mrr": { + "invoice_name": { "type": [ "null", - "boolean" + "string" ] }, - "invoice_name": { + "invoice_notes": { "type": [ "null", "string" ] }, - "invoice_notes": { + "item_constraint_criteria": { + "items": { + "properties": { + "currencies": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_family_ids": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_price_periods": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, "type": [ "null", - "string" + "array" + ] + }, + "item_constraints": { + "items": { + "properties": { + "constraint": { + "type": [ + "null", + "string" + ] + }, + "item_price_ids": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" ] }, "max_redemptions": { @@ -139,24 +209,6 @@ "string" ] }, - "plan_constraint": { - "type": [ - "null", - "string" - ] - }, - "plan_ids": { - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - }, "redemptions": { "type": [ "null", diff --git a/_data/taps/schemas/chargebee/v1/json/customers.json b/_data/taps/schemas/chargebee/v1/json/customers.json index fe3a6c227..6cbb292dc 100644 --- a/_data/taps/schemas/chargebee/v1/json/customers.json +++ b/_data/taps/schemas/chargebee/v1/json/customers.json @@ -209,6 +209,12 @@ "boolean" ] }, + "business_entity_id": { + "type": [ + "null", + "string" + ] + }, "card_status": { "type": [ "null", @@ -222,6 +228,12 @@ "string" ] }, + "cf_people_id": { + "type": [ + "null", + "string" + ] + }, "channel": { "type": [ "null", @@ -770,6 +782,12 @@ "integer" ] }, + "tax_providers_fields": { + "type": [ + "null", + "string" + ] + }, "taxability": { "type": [ "null", diff --git a/_data/taps/schemas/chargebee/v1/json/events.json b/_data/taps/schemas/chargebee/v1/json/events.json index 34e56d282..edcbad0df 100644 --- a/_data/taps/schemas/chargebee/v1/json/events.json +++ b/_data/taps/schemas/chargebee/v1/json/events.json @@ -9,282 +9,377 @@ }, "content": { "properties": { - "addon": { + "coupon": { "properties": { - "accounting_category1": { + "apply_discount_on": { "type": [ "null", "string" ] }, - "accounting_category2": { + "apply_on": { "type": [ "null", "string" ] }, - "accounting_category3": { + "archived_at": { "type": [ "null", - "string" + "date-time" ] }, - "accounting_category4": { + "created_at": { "type": [ "null", - "string" + "date-time" ] }, - "accounting_code": { + "currency_code": { "type": [ "null", "string" ] }, - "archived_at": { + "discount_amount": { "type": [ "null", - "date-time" + "number" ] }, - "avalara_sale_type": { + "discount_percentage": { "type": [ "null", - "string" + "number" ] }, - "avalara_service_type": { + "discount_type": { "type": [ "null", - "integer" + "string" ] }, - "avalara_transaction_type": { + "duration_month": { "type": [ "null", "integer" ] }, - "channel": { + "duration_type": { "type": [ "null", "string" ] }, - "charge_type": { + "id": { "type": [ "null", "string" ] }, - "currency_code": { + "invoice_name": { "type": [ "null", "string" ] }, - "custom_fields": { + "invoice_notes": { "type": [ "null", "string" ] }, - "description": { + "item_constraint_criteria": { + "items": { + "properties": { + "currencies": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_family_ids": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_price_periods": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, "type": [ "null", - "string" + "array" ] }, - "enabled_in_portal": { + "item_constraints": { + "items": { + "properties": { + "constraint": { + "type": [ + "null", + "string" + ] + }, + "item_price_ids": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, "type": [ "null", - "boolean" + "array" ] }, - "id": { + "max_redemptions": { "type": [ "null", - "string" + "integer" ] }, - "included_in_mrr": { + "meta_data": { "type": [ "null", - "boolean" + "string" ] }, - "invoice_name": { + "name": { "type": [ "null", "string" ] }, - "invoice_notes": { + "object": { "type": [ "null", "string" ] }, - "is_shippable": { + "period": { "type": [ "null", - "boolean" + "integer" ] }, - "meta_data": { + "period_unit": { "type": [ "null", "string" ] }, - "name": { + "redemptions": { "type": [ "null", - "string" + "integer" ] }, - "object": { + "resource_version": { "type": [ "null", - "string" + "integer" ] }, - "period": { + "status": { "type": [ "null", - "integer" + "string" ] }, - "period_unit": { + "updated_at": { "type": [ "null", - "string" + "date-time" ] }, - "price": { + "valid_till": { "type": [ "null", - "integer" + "date-time" ] - }, - "price_in_decimal": { + } + }, + "type": [ + "object" + ] + }, + "coupon_code": { + "additionalProperties": false, + "properties": { + "code": { "type": [ "null", "string" ] }, - "pricing_model": { + "coupon_id": { "type": [ "null", "string" ] }, - "resource_version": { + "coupon_set_id": { "type": [ "null", - "integer" + "string" ] }, - "shipping_frequency_period": { + "coupon_set_name": { "type": [ "null", - "integer" + "string" ] }, - "shipping_frequency_period_unit": { + "coupon_site_id": { "type": [ "null", "string" ] }, - "show_description_in_invoices": { + "status": { "type": [ "null", - "boolean" + "string" ] - }, - "show_description_in_quotes": { + } + }, + "type": [ + "null", + "object" + ] + }, + "coupon_set": { + "additionalProperties": false, + "properties": { + "archived_count": { "type": [ "null", - "boolean" + "integer" ] }, - "sku": { + "coupon_id": { "type": [ "null", "string" ] }, - "status": { + "id": { "type": [ "null", "string" ] }, - "tax_code": { + "meta_data": { "type": [ "null", "string" ] }, - "tax_profile_id": { + "name": { "type": [ "null", "string" ] }, - "taxable": { + "redeemed_count": { "type": [ "null", - "boolean" + "integer" ] }, - "taxjar_product_code": { + "total_count": { "type": [ "null", - "string" + "integer" ] - }, - "tiers": { + } + }, + "type": [ + "null", + "object" + ] + }, + "credit_note": { + "properties": { + "allocations": { "items": { "properties": { - "ending_unit": { + "allocated_amount": { "type": [ "null", "integer" ] }, - "ending_unit_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "object": { + "allocated_at": { "type": [ "null", - "string" + "date-time" ] }, - "price": { + "invoice_date": { "type": [ "null", - "integer" + "date-time" ] }, - "price_in_decimal": { + "invoice_id": { "type": [ "null", "string" ] }, - "starting_unit": { - "type": [ - "null", - "integer" - ] - }, - "starting_unit_in_decimal": { + "invoice_status": { "type": [ "null", "string" @@ -301,180 +396,103 @@ "array" ] }, - "type": { + "amount_allocated": { "type": [ "null", - "string" + "integer" ] }, - "unit": { + "amount_available": { "type": [ "null", - "string" + "integer" ] }, - "updated_at": { + "amount_refunded": { "type": [ "null", - "date-time" + "integer" ] - } - }, - "type": [ - "object" - ] - }, - "coupon": { - "properties": { - "addon_constraint": { + }, + "base_currency_code": { "type": [ "null", "string" ] }, - "addon_ids": { - "items": { - "type": [ - "null", - "string" - ] - }, - "type": [ - "null", - "array" - ] - }, - "apply_discount_on": { + "channel": { "type": [ "null", "string" ] }, - "apply_on": { + "create_reason_code": { "type": [ "null", "string" ] }, - "archived_at": { - "type": [ - "null", - "date-time" - ] - }, - "created_at": { - "type": [ - "null", - "date-time" - ] - }, "currency_code": { "type": [ "null", "string" ] }, - "discount_amount": { - "type": [ - "null", - "number" - ] - }, - "discount_percentage": { - "type": [ - "null", - "number" - ] - }, - "discount_type": { - "type": [ - "null", - "string" - ] - }, - "duration_month": { - "type": [ - "null", - "integer" - ] - }, - "duration_type": { + "customer_id": { "type": [ "null", "string" ] }, - "id": { + "date": { "type": [ "null", - "string" + "date-time" ] }, - "included_in_mrr": { + "deleted": { "type": [ "null", "boolean" ] }, - "invoice_name": { - "type": [ - "null", - "string" - ] - }, - "invoice_notes": { - "type": [ - "null", - "string" - ] - }, - "max_redemptions": { - "type": [ - "null", - "integer" - ] - }, - "meta_data": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "object": { - "type": [ - "null", - "string" - ] - }, - "period": { - "type": [ - "null", - "integer" - ] - }, - "period_unit": { - "type": [ - "null", - "string" - ] - }, - "plan_constraint": { - "type": [ - "null", - "string" - ] - }, - "plan_ids": { + "discounts": { "items": { + "properties": { + "amount": { + "type": [ + "null", + "integer" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "entity_id": { + "type": [ + "null", + "string" + ] + }, + "entity_type": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + } + }, "type": [ "null", - "string" + "object" ] }, "type": [ @@ -482,275 +500,180 @@ "array" ] }, - "redemptions": { - "type": [ - "null", - "integer" - ] - }, - "resource_version": { + "einvoice": { + "properties": { + "id": { + "type": [ + "null", + "string" + ] + }, + "message": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + } + }, "type": [ "null", - "integer" + "object" ] }, - "status": { + "exchange_rate": { "type": [ "null", - "string" + "number" ] }, - "updated_at": { + "fractional_correction": { "type": [ "null", - "date-time" + "integer" ] }, - "valid_till": { + "generated_at": { "type": [ "null", "date-time" ] - } - }, - "type": [ - "object" - ] - }, - "coupon_code": { - "additionalProperties": false, - "properties": { - "code": { - "type": [ - "null", - "string" - ] - }, - "coupon_id": { - "type": [ - "null", - "string" - ] }, - "coupon_set_id": { + "id": { "type": [ "null", "string" ] }, - "coupon_set_name": { + "line_item_discounts": { + "items": { + "properties": { + "coupon_id": { + "type": [ + "null", + "string" + ] + }, + "discount_amount": { + "type": [ + "null", + "integer" + ] + }, + "discount_type": { + "type": [ + "null", + "string" + ] + }, + "entity_id": { + "type": [ + "null", + "string" + ] + }, + "line_item_id": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, "type": [ "null", - "string" + "array" ] }, - "coupon_site_id": { - "type": [ - "null", - "string" - ] - }, - "status": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "coupon_set": { - "additionalProperties": false, - "properties": { - "archived_count": { - "type": [ - "null", - "integer" - ] - }, - "coupon_id": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "meta_data": { - "type": [ - "null", - "string" - ] - }, - "name": { - "type": [ - "null", - "string" - ] - }, - "redeemed_count": { - "type": [ - "null", - "integer" - ] - }, - "total_count": { - "type": [ - "null", - "integer" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "credit_note": { - "properties": { - "allocations": { + "line_item_taxes": { "items": { "properties": { - "allocated_amount": { + "is_non_compliance_tax": { "type": [ "null", - "integer" + "boolean" ] }, - "allocated_at": { + "is_partial_tax_applied": { "type": [ "null", - "date-time" + "boolean" ] }, - "invoice_date": { + "line_item_id": { "type": [ "null", - "date-time" + "string" ] }, - "invoice_id": { + "local_currency_code": { "type": [ "null", "string" ] }, - "invoice_status": { + "tax_amount": { "type": [ "null", - "string" + "integer" ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "amount_allocated": { - "type": [ - "null", - "integer" - ] - }, - "amount_available": { - "type": [ - "null", - "integer" - ] - }, - "amount_refunded": { - "type": [ - "null", - "integer" - ] - }, - "base_currency_code": { - "type": [ - "null", - "string" - ] - }, - "channel": { - "type": [ - "null", - "string" - ] - }, - "create_reason_code": { - "type": [ - "null", - "string" - ] - }, - "currency_code": { - "type": [ - "null", - "string" - ] - }, - "customer_id": { - "type": [ - "null", - "string" - ] - }, - "date": { - "type": [ - "null", - "date-time" - ] - }, - "deleted": { - "type": [ - "null", - "boolean" - ] - }, - "discounts": { - "items": { - "properties": { - "amount": { + }, + "tax_amount_in_local_currency": { "type": [ "null", "integer" ] }, - "description": { + "tax_juris_code": { "type": [ "null", "string" ] }, - "entity_id": { + "tax_juris_name": { "type": [ "null", "string" ] }, - "entity_type": { + "tax_juris_type": { "type": [ "null", "string" ] }, - "object": { + "tax_name": { "type": [ "null", "string" ] + }, + "tax_rate": { + "type": [ + "null", + "number" + ] + }, + "taxable_amount": { + "type": [ + "null", + "integer" + ] } }, "type": [ @@ -763,226 +686,40 @@ "array" ] }, - "einvoice": { - "properties": { - "id": { - "type": [ - "null", - "string" - ] - }, - "message": { - "type": [ - "null", - "string" - ] - }, - "status": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "exchange_rate": { - "type": [ - "null", - "number" - ] - }, - "fractional_correction": { - "type": [ - "null", - "integer" - ] - }, - "generated_at": { - "type": [ - "null", - "date-time" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "line_item_discounts": { + "line_item_tiers": { "items": { "properties": { - "coupon_id": { + "ending_unit": { "type": [ "null", - "string" + "integer" ] }, - "discount_amount": { + "ending_unit_in_decimal": { "type": [ "null", - "integer" + "string" ] }, - "discount_type": { + "line_item_id": { "type": [ "null", "string" ] }, - "entity_id": { + "quantity_used": { "type": [ "null", - "string" + "integer" ] }, - "line_item_id": { + "quantity_used_in_decimal": { "type": [ "null", "string" ] }, - "object": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "line_item_taxes": { - "items": { - "properties": { - "is_non_compliance_tax": { - "type": [ - "null", - "boolean" - ] - }, - "is_partial_tax_applied": { - "type": [ - "null", - "boolean" - ] - }, - "line_item_id": { - "type": [ - "null", - "string" - ] - }, - "local_currency_code": { - "type": [ - "null", - "string" - ] - }, - "tax_amount": { - "type": [ - "null", - "integer" - ] - }, - "tax_amount_in_local_currency": { - "type": [ - "null", - "integer" - ] - }, - "tax_juris_code": { - "type": [ - "null", - "string" - ] - }, - "tax_juris_name": { - "type": [ - "null", - "string" - ] - }, - "tax_juris_type": { - "type": [ - "null", - "string" - ] - }, - "tax_name": { - "type": [ - "null", - "string" - ] - }, - "tax_rate": { - "type": [ - "null", - "number" - ] - }, - "taxable_amount": { - "type": [ - "null", - "integer" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "line_item_tiers": { - "items": { - "properties": { - "ending_unit": { - "type": [ - "null", - "integer" - ] - }, - "ending_unit_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "line_item_id": { - "type": [ - "null", - "string" - ] - }, - "quantity_used": { - "type": [ - "null", - "integer" - ] - }, - "quantity_used_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "starting_unit": { + "starting_unit": { "type": [ "null", "integer" @@ -1586,6 +1323,12 @@ "boolean" ] }, + "business_entity_id": { + "type": [ + "null", + "string" + ] + }, "card_status": { "type": [ "null", @@ -1599,6 +1342,12 @@ "string" ] }, + "cf_people_id": { + "type": [ + "null", + "string" + ] + }, "channel": { "type": [ "null", @@ -2147,6 +1896,12 @@ "integer" ] }, + "tax_providers_fields": { + "type": [ + "null", + "string" + ] + }, "taxability": { "type": [ "null", @@ -3178,7 +2933,6 @@ "tax_rate": { "type": [ "null", - "integer", "number" ] }, @@ -3637,544 +3391,19 @@ } }, "type": [ - "object" - ] - }, - "order": { - "properties": { - "amount_adjusted": { - "type": [ - "null", - "integer" - ] - }, - "amount_paid": { - "type": [ - "null", - "integer" - ] - }, - "batch_id": { - "type": [ - "null", - "string" - ] - }, - "billing_address": { - "properties": { - "city": { - "type": [ - "null", - "string" - ] - }, - "company": { - "type": [ - "null", - "string" - ] - }, - "country": { - "type": [ - "null", - "string" - ] - }, - "email": { - "type": [ - "null", - "string" - ] - }, - "first_name": { - "type": [ - "null", - "string" - ] - }, - "last_name": { - "type": [ - "null", - "string" - ] - }, - "line1": { - "type": [ - "null", - "string" - ] - }, - "line2": { - "type": [ - "null", - "string" - ] - }, - "line3": { - "type": [ - "null", - "string" - ] - }, - "object": { - "type": [ - "null", - "string" - ] - }, - "phone": { - "type": [ - "null", - "string" - ] - }, - "state": { - "type": [ - "null", - "string" - ] - }, - "state_code": { - "type": [ - "null", - "string" - ] - }, - "validation_status": { - "type": [ - "null", - "string" - ] - }, - "zip": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "cancellation_reason": { - "type": [ - "null", - "string" - ] - }, - "cancelled_at": { - "type": [ - "null", - "date-time" - ] - }, - "created_at": { - "type": [ - "null", - "date-time" - ] - }, - "created_by": { - "type": [ - "null", - "string" - ] - }, - "currency_code": { - "type": [ - "null", - "string" - ] - }, - "customer_id": { - "type": [ - "null", - "string" - ] - }, - "deleted": { - "type": [ - "null", - "boolean" - ] - }, - "delivered_at": { - "type": [ - "null", - "date-time" - ] - }, - "discount": { - "type": [ - "null", - "integer" - ] - }, - "document_number": { - "type": [ - "null", - "string" - ] - }, - "fulfillment_status": { - "type": [ - "null", - "string" - ] - }, - "gift_id": { - "type": [ - "null", - "string" - ] - }, - "gift_note": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "invoice_id": { - "type": [ - "null", - "string" - ] - }, - "invoice_round_off_amount": { - "type": [ - "null", - "integer" - ] - }, - "is_gifted": { - "type": [ - "null", - "boolean" - ] - }, - "is_resent": { - "type": [ - "null", - "boolean" - ] - }, - "line_item_discounts": { - "items": { - "properties": { - "coupon_id": { - "type": [ - "null", - "string" - ] - }, - "discount_amount": { - "type": [ - "null", - "integer" - ] - }, - "discount_type": { - "type": [ - "null", - "string" - ] - }, - "line_item_id": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "line_item_taxes": { - "items": { - "properties": { - "is_non_compliance_tax": { - "type": [ - "null", - "boolean" - ] - }, - "is_partial_tax_applied": { - "type": [ - "null", - "boolean" - ] - }, - "line_item_id": { - "type": [ - "null", - "string" - ] - }, - "local_currency_code": { - "type": [ - "null", - "string" - ] - }, - "tax_amount": { - "type": [ - "null", - "integer" - ] - }, - "tax_amount_in_local_currency": { - "type": [ - "null", - "integer" - ] - }, - "tax_juris_code": { - "type": [ - "null", - "string" - ] - }, - "tax_juris_name": { - "type": [ - "null", - "string" - ] - }, - "tax_juris_type": { - "type": [ - "null", - "string" - ] - }, - "tax_name": { - "type": [ - "null", - "string" - ] - }, - "tax_rate": { - "type": [ - "null", - "integer", - "number" - ] - }, - "taxable_amount": { - "type": [ - "null", - "integer" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "linked_credit_notes": { - "items": { - "properties": { - "amount": { - "type": [ - "null", - "integer" - ] - }, - "amount_adjusted": { - "type": [ - "null", - "integer" - ] - }, - "amount_refunded": { - "type": [ - "null", - "integer" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "status": { - "type": [ - "null", - "string" - ] - }, - "type": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "note": { - "type": [ - "null", - "string" - ] - }, - "order_date": { - "type": [ - "null", - "date-time" - ] - }, - "order_line_items": { - "items": { - "properties": { - "amount": { - "type": [ - "null", - "integer" - ] - }, - "amount_adjusted": { - "type": [ - "null", - "integer" - ] - }, - "amount_paid": { - "type": [ - "null", - "integer" - ] - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "discount_amount": { - "type": [ - "null", - "integer" - ] - }, - "entity_id": { - "type": [ - "null", - "string" - ] - }, - "entity_type": { - "type": [ - "null", - "string" - ] - }, - "fulfillment_amount": { - "type": [ - "null", - "integer" - ] - }, - "fulfillment_quantity": { - "type": [ - "null", - "integer" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "invoice_id": { - "type": [ - "null", - "string" - ] - }, - "invoice_line_item_id": { - "type": [ - "null", - "string" - ] - }, - "is_shippable": { - "type": [ - "null", - "boolean" - ] - }, - "item_level_discount_amount": { - "type": [ - "null", - "integer" - ] - }, - "refundable_credits": { - "type": [ - "null", - "integer" - ] - }, - "refundable_credits_issued": { - "type": [ - "null", - "integer" - ] - }, - "sku": { - "type": [ - "null", - "string" - ] - }, - "status": { + "object" + ] + }, + "item": { + "properties": { + "applicable_items": { + "items": { + "properties": { + "id": { "type": [ "null", "string" ] - }, - "tax_amount": { - "type": [ - "null", - "integer" - ] - }, - "unit_price": { - "type": [ - "null", - "integer" - ] } }, "type": [ @@ -4187,93 +3416,122 @@ "array" ] }, - "order_type": { + "archivable": { "type": [ "null", + "boolean", "string" ] }, - "original_order_id": { + "archived_at": { + "type": [ + "null", + "date-time" + ] + }, + "channel": { "type": [ "null", "string" ] }, - "paid_on": { + "custom_fields": { "type": [ "null", - "date-time" + "string" ] }, - "payment_status": { + "description": { "type": [ "null", "string" ] }, - "price_type": { + "enabled_for_checkout": { + "type": [ + "null", + "boolean" + ] + }, + "enabled_in_portal": { + "type": [ + "null", + "boolean" + ] + }, + "external_name": { "type": [ "null", "string" ] }, - "reference_id": { + "gift_claim_redirect_url": { "type": [ "null", "string" ] }, - "refundable_credits": { + "id": { "type": [ "null", - "integer" + "string" ] }, - "refundable_credits_issued": { + "included_in_mrr": { "type": [ "null", - "integer" + "boolean" ] }, - "resend_reason": { + "is_giftable": { + "type": [ + "null", + "boolean" + ] + }, + "is_shippable": { + "type": [ + "null", + "boolean" + ] + }, + "item_applicability": { "type": [ "null", "string" ] }, - "resent_orders": { - "items": { - "properties": { - "amount": { - "type": [ - "null", - "integer" - ] - }, - "order_id": { - "type": [ - "null", - "string" - ] - }, - "reason": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, + "item_family_id": { "type": [ "null", - "array" + "string" ] }, - "resent_status": { + "metadata": { + "type": [ + "null", + "string" + ] + }, + "metered": { + "type": [ + "null", + "boolean" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + }, + "redirect_url": { "type": [ "null", "string" @@ -4285,105 +3543,137 @@ "integer" ] }, - "rounding_adjustement": { + "status": { "type": [ "null", - "integer" + "string" ] }, - "shipment_carrier": { + "type": { "type": [ "null", "string" ] }, - "shipped_at": { + "unit": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { "type": [ "null", "date-time" ] }, - "shipping_address": { - "properties": { - "city": { - "type": [ - "null", - "string" - ] - }, - "company": { - "type": [ - "null", - "string" - ] - }, - "country": { - "type": [ - "null", - "string" - ] - }, - "email": { - "type": [ - "null", - "string" - ] - }, - "first_name": { - "type": [ - "null", - "string" - ] - }, - "last_name": { - "type": [ - "null", - "string" - ] - }, - "line1": { - "type": [ - "null", - "string" - ] - }, - "line2": { - "type": [ - "null", - "string" - ] - }, - "line3": { + "usage_calculation": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "object" + ] + }, + "item_family": { + "properties": { + "channel": { + "type": [ + "null", + "string" + ] + }, + "custom_fields": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + }, + "resource_version": { + "type": [ + "null", + "integer" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": [ + "object" + ] + }, + "item_price": { + "properties": { + "accounting_detail": { + "properties": { + "accounting_category1": { "type": [ "null", "string" ] }, - "phone": { + "accounting_category2": { "type": [ "null", "string" ] }, - "state": { + "accounting_category3": { "type": [ "null", "string" ] }, - "state_code": { + "accounting_category4": { "type": [ "null", "string" ] }, - "validation_status,": { + "accounting_code": { "type": [ "null", "string" ] }, - "zip": { + "sku": { "type": [ "null", "string" @@ -4395,138 +3685,226 @@ "object" ] }, - "shipping_cut_off_date": { + "archivable": { "type": [ "null", - "date-time" + "boolean", + "string" ] }, - "shipping_date": { + "archived_at": { "type": [ "null", "date-time" ] }, - "status": { + "billing_cycles": { + "type": [ + "null", + "integer" + ] + }, + "channel": { "type": [ "null", "string" ] }, - "status_update_at": { + "created_at": { "type": [ "null", "date-time" ] }, - "sub_total": { + "currency_code": { + "type": [ + "null", + "string" + ] + }, + "custom_fields": { + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "external_name": { + "type": [ + "null", + "string" + ] + }, + "free_quantity": { "type": [ "null", "integer" ] }, - "subscription_id": { + "free_quantity_in_decimal": { "type": [ "null", "string" ] }, - "tax": { + "id": { + "type": [ + "null", + "string" + ] + }, + "invoice_notes": { + "type": [ + "null", + "string" + ] + }, + "is_taxable": { + "type": [ + "null", + "boolean" + ] + }, + "item_family_id": { + "type": [ + "null", + "string" + ] + }, + "item_id": { + "type": [ + "null", + "string" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + }, + "metadata": { + "type": [ + "null", + "string" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + }, + "period": { "type": [ "null", "integer" ] }, - "total": { + "period_unit": { + "type": [ + "null", + "string" + ] + }, + "price": { "type": [ "null", "integer" ] }, - "tracking_id": { + "price_in_decimal": { "type": [ "null", "string" ] }, - "tracking_url": { + "pricing_model": { "type": [ "null", "string" ] }, - "updated_at": { + "resource_version": { "type": [ "null", - "date-time" + "integer" ] - } - }, - "type": [ - "object" - ] - }, - "payment_source": { - "properties": { - "amazon_payment": { - "properties": { - "agreement_id": { - "type": [ - "null", - "string" - ] - }, - "email": { - "type": [ - "null", - "string" - ] - } - }, + }, + "shipping_period": { "type": [ "null", - "object" + "integer" ] }, - "bank_account": { + "shipping_period_unit": { + "type": [ + "null", + "string" + ] + }, + "show_description_in_invoices": { + "type": [ + "null", + "boolean" + ] + }, + "show_description_in_quotes": { + "type": [ + "null", + "boolean" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "tax_detail": { "properties": { - "account_holder_type": { - "type": [ - "null", - "string" - ] - }, - "account_type": { + "avalara_sale_type": { "type": [ "null", "string" ] }, - "bank_name": { + "avalara_service_type": { "type": [ "null", - "string" + "integer" ] }, - "echeck_type": { + "avalara_tax_code": { "type": [ "null", "string" ] }, - "last4": { + "avalara_transaction_type": { "type": [ "null", - "string" + "integer" ] }, - "mandate_id": { + "tax_profile_id": { "type": [ "null", "string" ] }, - "name_on_account": { + "taxjar_product_code": { "type": [ "null", "string" @@ -4535,108 +3913,177 @@ }, "type": [ "null", - "object" + "object" + ] + }, + "tiers": { + "items": { + "properties": { + "ending_unit": { + "type": [ + "null", + "integer" + ] + }, + "price": { + "type": [ + "null", + "integer" + ] + }, + "starting_unit": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "trial_end_action": { + "type": [ + "null", + "string" + ] + }, + "trial_period": { + "type": [ + "null", + "integer" + ] + }, + "trial_period_unit": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "date-time" + ] + } + }, + "type": [ + "object" + ] + }, + "order": { + "properties": { + "amount_adjusted": { + "type": [ + "null", + "integer" + ] + }, + "amount_paid": { + "type": [ + "null", + "integer" ] }, - "card": { + "batch_id": { + "type": [ + "null", + "string" + ] + }, + "billing_address": { "properties": { - "billing_addr1": { + "city": { "type": [ "null", "string" ] }, - "billing_addr2": { + "company": { "type": [ "null", "string" ] }, - "billing_city": { + "country": { "type": [ "null", "string" ] }, - "billing_country": { + "email": { "type": [ "null", "string" ] }, - "billing_state": { + "first_name": { "type": [ "null", "string" ] }, - "billing_state_code": { + "last_name": { "type": [ "null", "string" ] }, - "billing_zip": { + "line1": { "type": [ "null", "string" ] }, - "brand": { + "line2": { "type": [ "null", "string" ] }, - "expiry_month": { - "type": [ - "null", - "integer" - ] - }, - "expiry_year": { - "type": [ - "null", - "integer" - ] - }, - "first_name": { + "line3": { "type": [ "null", "string" ] }, - "funding_type": { + "object": { "type": [ "null", "string" ] }, - "iin": { + "phone": { "type": [ "null", "string" ] }, - "last4": { + "state": { "type": [ "null", "string" ] }, - "last_name": { + "state_code": { "type": [ "null", "string" ] }, - "masked_number": { + "validation_status": { "type": [ "null", "string" ] }, - "object": { + "zip": { "type": [ "null", "string" @@ -4644,218 +4091,277 @@ } }, "type": [ + "null", "object" ] }, + "cancellation_reason": { + "type": [ + "null", + "string" + ] + }, + "cancelled_at": { + "type": [ + "null", + "date-time" + ] + }, "created_at": { "type": [ "null", "date-time" ] }, - "customer_id": { + "created_by": { "type": [ "null", "string" ] }, - "deleted": { + "currency_code": { "type": [ "null", - "boolean" + "string" ] }, - "gateway": { + "customer_id": { "type": [ "null", "string" ] }, - "gateway_account_id": { + "deleted": { "type": [ "null", - "string" + "boolean" ] }, - "id": { + "delivered_at": { "type": [ "null", - "string" + "date-time" ] }, - "ip_address": { + "discount": { + "type": [ + "null", + "integer" + ] + }, + "document_number": { "type": [ "null", "string" ] }, - "issuing_country": { + "fulfillment_status": { "type": [ "null", "string" ] }, - "mandates": { - "items": { - "properties": { - "created_at": { - "type": [ - "null", - "date-time" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "subscription_id": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, + "gift_id": { "type": [ "null", - "array" + "string" ] }, - "object": { + "gift_note": { "type": [ "null", "string" ] }, - "paypal": { - "properties": { - "agremeent_id": { - "type": [ - "null", - "string" - ] - }, - "email": { - "type": [ - "null", - "string" - ] - } - }, + "id": { "type": [ "null", - "object" + "string" ] }, - "reference_id": { + "invoice_id": { "type": [ "null", "string" ] }, - "resource_version": { + "invoice_round_off_amount": { "type": [ "null", "integer" ] }, - "status": { + "is_gifted": { "type": [ "null", - "string" + "boolean" ] }, - "type": { + "is_resent": { "type": [ "null", - "string" + "boolean" ] }, - "updated_at": { + "line_item_discounts": { + "items": { + "properties": { + "coupon_id": { + "type": [ + "null", + "string" + ] + }, + "discount_amount": { + "type": [ + "null", + "integer" + ] + }, + "discount_type": { + "type": [ + "null", + "string" + ] + }, + "line_item_id": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, "type": [ "null", - "date-time" + "array" ] }, - "upi": { - "properties": { - "vpa": { - "type": [ - "null", - "string" - ] - } + "line_item_taxes": { + "items": { + "properties": { + "is_non_compliance_tax": { + "type": [ + "null", + "boolean" + ] + }, + "is_partial_tax_applied": { + "type": [ + "null", + "boolean" + ] + }, + "line_item_id": { + "type": [ + "null", + "string" + ] + }, + "local_currency_code": { + "type": [ + "null", + "string" + ] + }, + "tax_amount": { + "type": [ + "null", + "integer" + ] + }, + "tax_amount_in_local_currency": { + "type": [ + "null", + "integer" + ] + }, + "tax_juris_code": { + "type": [ + "null", + "string" + ] + }, + "tax_juris_name": { + "type": [ + "null", + "string" + ] + }, + "tax_juris_type": { + "type": [ + "null", + "string" + ] + }, + "tax_name": { + "type": [ + "null", + "string" + ] + }, + "tax_rate": { + "type": [ + "null", + "integer", + "number" + ] + }, + "taxable_amount": { + "type": [ + "null", + "integer" + ] + } + }, + "type": [ + "null", + "object" + ] }, "type": [ "null", - "object" - ] - } - }, - "type": [ - "object" - ] - }, - "plan": { - "properties": { - "account_code": { - "type": [ - "null", - "string" - ] - }, - "accounting_category1": { - "type": [ - "null", - "string" - ] - }, - "accounting_category2": { - "type": [ - "null", - "string" - ] - }, - "accounting_category3": { - "type": [ - "null", - "string" - ] - }, - "accounting_category4": { - "type": [ - "null", - "string" - ] - }, - "accounting_code": { - "type": [ - "null", - "string" - ] - }, - "addon_applicability": { - "type": [ - "null", - "string" + "array" ] }, - "applicable_addons": { + "linked_credit_notes": { "items": { "properties": { + "amount": { + "type": [ + "null", + "integer" + ] + }, + "amount_adjusted": { + "type": [ + "null", + "integer" + ] + }, + "amount_refunded": { + "type": [ + "null", + "integer" + ] + }, "id": { "type": [ "null", "string" ] }, - "quantity_in_decimal": { + "status": { + "type": [ + "null", + "string" + ] + }, + "type": { "type": [ "null", "string" @@ -4872,16 +4378,70 @@ "array" ] }, - "archived_at": { + "note": { + "type": [ + "null", + "string" + ] + }, + "order_date": { "type": [ "null", "date-time" ] }, - "attached_addons": { + "order_line_items": { "items": { "properties": { - "billing_cycles": { + "amount": { + "type": [ + "null", + "integer" + ] + }, + "amount_adjusted": { + "type": [ + "null", + "integer" + ] + }, + "amount_paid": { + "type": [ + "null", + "integer" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "discount_amount": { + "type": [ + "null", + "integer" + ] + }, + "entity_id": { + "type": [ + "null", + "string" + ] + }, + "entity_type": { + "type": [ + "null", + "string" + ] + }, + "fulfillment_amount": { + "type": [ + "null", + "integer" + ] + }, + "fulfillment_quantity": { "type": [ "null", "integer" @@ -4893,23 +4453,65 @@ "string" ] }, - "quantity": { + "invoice_id": { + "type": [ + "null", + "string" + ] + }, + "invoice_line_item_id": { + "type": [ + "null", + "string" + ] + }, + "is_shippable": { + "type": [ + "null", + "boolean" + ] + }, + "item_level_discount_amount": { "type": [ "null", "integer" ] }, - "quantity_in_decimal": { + "refundable_credits": { + "type": [ + "null", + "integer" + ] + }, + "refundable_credits_issued": { + "type": [ + "null", + "integer" + ] + }, + "sku": { "type": [ "null", "string" ] }, - "type": { + "status": { "type": [ "null", "string" ] + }, + "tax_amount": { + "type": [ + "null", + "integer" + ] + }, + "unit_price": { + "type": [ + "null", + "integer" + ] } }, "type": [ @@ -4922,106 +4524,76 @@ "array" ] }, - "avalara_sale_type": { + "order_type": { "type": [ "null", "string" ] }, - "avalara_service_type": { - "type": [ - "null", - "integer" - ] - }, - "avalara_transaction_type": { - "type": [ - "null", - "integer" - ] - }, - "billing_cycles": { - "type": [ - "null", - "integer" - ] - }, - "channel": { + "original_order_id": { "type": [ "null", "string" ] }, - "charge_model": { + "paid_on": { "type": [ "null", - "string" + "date-time" ] }, - "claim_url": { + "payment_status": { "type": [ "null", "string" ] }, - "currency_code": { + "price_type": { "type": [ "null", "string" ] }, - "custom_fields": { + "reference_id": { "type": [ "null", "string" ] }, - "description": { + "refundable_credits": { "type": [ "null", - "string" + "integer" ] }, - "enabled_in_hosted_pages": { + "refundable_credits_issued": { "type": [ "null", - "boolean" + "integer" ] }, - "enabled_in_portal": { + "resend_reason": { "type": [ "null", - "boolean" + "string" ] }, - "event_based_addons": { + "resent_orders": { "items": { "properties": { - "charge_once": { - "type": [ - "null", - "boolean" - ] - }, - "id": { + "amount": { "type": [ "null", - "string" + "integer" ] }, - "on_event": { + "order_id": { "type": [ "null", "string" ] }, - "quantity": { - "type": [ - "null", - "integer" - ] - }, - "quantity_in_decimal": { + "reason": { "type": [ "null", "string" @@ -5038,208 +4610,444 @@ "array" ] }, - "free_quantity": { + "resent_status": { "type": [ "null", - "integer" + "string" ] }, - "free_quantity_in_decimal": { + "resource_version": { "type": [ "null", - "string" + "integer" ] }, - "giftable": { + "rounding_adjustement": { "type": [ "null", - "boolean" + "integer" ] }, - "id": { + "shipment_carrier": { "type": [ "null", "string" ] }, - "invoice_name": { + "shipped_at": { "type": [ "null", - "string" + "date-time" ] }, - "invoice_notes": { + "shipping_address": { + "properties": { + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "line1": { + "type": [ + "null", + "string" + ] + }, + "line2": { + "type": [ + "null", + "string" + ] + }, + "line3": { + "type": [ + "null", + "string" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "state": { + "type": [ + "null", + "string" + ] + }, + "state_code": { + "type": [ + "null", + "string" + ] + }, + "validation_status,": { + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, "type": [ "null", - "string" + "object" ] }, - "is_shippable": { + "shipping_cut_off_date": { "type": [ "null", - "boolean" + "date-time" ] }, - "meta_data": { + "shipping_date": { "type": [ "null", - "string" + "date-time" ] }, - "name": { + "status": { "type": [ "null", "string" ] }, - "object": { + "status_update_at": { "type": [ "null", - "string" + "date-time" ] }, - "period": { + "sub_total": { "type": [ "null", "integer" ] }, - "period_unit": { + "subscription_id": { "type": [ "null", "string" ] }, - "price": { + "tax": { "type": [ "null", "integer" ] }, - "price_in_decimal": { + "total": { "type": [ "null", - "string" + "integer" ] }, - "pricing_model": { + "tracking_id": { "type": [ "null", "string" ] }, - "redirect_url": { + "tracking_url": { "type": [ "null", "string" ] }, - "resource_version": { + "updated_at": { "type": [ "null", - "integer" + "date-time" + ] + } + }, + "type": [ + "object" + ] + }, + "payment_source": { + "properties": { + "amazon_payment": { + "properties": { + "agreement_id": { + "type": [ + "null", + "string" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "bank_account": { + "properties": { + "account_holder_type": { + "type": [ + "null", + "string" + ] + }, + "account_type": { + "type": [ + "null", + "string" + ] + }, + "bank_name": { + "type": [ + "null", + "string" + ] + }, + "echeck_type": { + "type": [ + "null", + "string" + ] + }, + "last4": { + "type": [ + "null", + "string" + ] + }, + "mandate_id": { + "type": [ + "null", + "string" + ] + }, + "name_on_account": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" ] }, - "setup_cost": { + "card": { + "properties": { + "billing_addr1": { + "type": [ + "null", + "string" + ] + }, + "billing_addr2": { + "type": [ + "null", + "string" + ] + }, + "billing_city": { + "type": [ + "null", + "string" + ] + }, + "billing_country": { + "type": [ + "null", + "string" + ] + }, + "billing_state": { + "type": [ + "null", + "string" + ] + }, + "billing_state_code": { + "type": [ + "null", + "string" + ] + }, + "billing_zip": { + "type": [ + "null", + "string" + ] + }, + "brand": { + "type": [ + "null", + "string" + ] + }, + "expiry_month": { + "type": [ + "null", + "integer" + ] + }, + "expiry_year": { + "type": [ + "null", + "integer" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "funding_type": { + "type": [ + "null", + "string" + ] + }, + "iin": { + "type": [ + "null", + "string" + ] + }, + "last4": { + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "masked_number": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + } + }, "type": [ - "null", - "integer" + "object" ] }, - "shipping_frequency_period": { + "created_at": { "type": [ "null", - "integer" + "date-time" ] }, - "shipping_frequency_period_unit": { + "customer_id": { "type": [ "null", "string" ] }, - "show_description_in_invoices": { - "type": [ - "null", - "boolean" - ] - }, - "show_description_in_quotes": { + "deleted": { "type": [ "null", "boolean" ] }, - "sku": { + "gateway": { "type": [ "null", "string" ] }, - "status": { + "gateway_account_id": { "type": [ "null", "string" ] }, - "tax_code": { + "id": { "type": [ "null", "string" ] }, - "tax_profile_id": { + "ip_address": { "type": [ "null", "string" ] }, - "taxable": { - "type": [ - "null", - "boolean" - ] - }, - "taxjar_product_code": { + "issuing_country": { "type": [ "null", "string" ] }, - "tiers": { + "mandates": { "items": { "properties": { - "ending_unit": { - "type": [ - "null", - "integer" - ] - }, - "ending_unit_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "price": { + "created_at": { "type": [ "null", - "integer" + "date-time" ] }, - "price_in_decimal": { + "id": { "type": [ "null", "string" ] }, - "starting_unit": { - "type": [ - "null", - "integer" - ] - }, - "starting_unit_in_decimal": { + "subscription_id": { "type": [ "null", "string" @@ -5256,19 +5064,51 @@ "array" ] }, - "trial_end_action": { + "object": { "type": [ "null", "string" ] }, - "trial_period": { + "paypal": { + "properties": { + "agremeent_id": { + "type": [ + "null", + "string" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "reference_id": { + "type": [ + "null", + "string" + ] + }, + "resource_version": { "type": [ "null", "integer" ] }, - "trial_period_unit": { + "status": { + "type": [ + "null", + "string" + ] + }, + "type": { "type": [ "null", "string" @@ -5279,6 +5119,20 @@ "null", "date-time" ] + }, + "upi": { + "properties": { + "vpa": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] } }, "type": [ @@ -5602,6 +5456,12 @@ "string" ] }, + "entity_id": { + "type": [ + "null", + "string" + ] + }, "line_item_id": { "type": [ "null", @@ -6174,87 +6034,7 @@ "activated_at": { "type": [ "null", - "date-time" - ] - }, - "addons": { - "items": { - "properties": { - "amount": { - "type": [ - "null", - "integer" - ] - }, - "amount_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "object": { - "type": [ - "null", - "string" - ] - }, - "quantity": { - "type": [ - "null", - "integer" - ] - }, - "quantity_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "remaining_billing_cycles": { - "type": [ - "null", - "integer" - ] - }, - "trial_end": { - "type": [ - "null", - "date-time" - ] - }, - "unit_price": { - "type": [ - "null", - "integer" - ] - }, - "unit_price_in_decimal": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "affiliate_token": { - "type": [ - "null", - "string" + "date-time" ] }, "auto_close_invoices": { @@ -6323,10 +6103,10 @@ "string" ] }, - "charged_event_based_addons": { + "charged_items": { "items": { "properties": { - "id": { + "item_price_id": { "type": [ "null", "string" @@ -6551,52 +6331,88 @@ "date-time" ] }, - "event_based_addons": { + "exchange_rate": { + "type": [ + "null", + "number" + ] + }, + "free_period": { + "type": [ + "null", + "integer" + ] + }, + "free_period_unit": { + "type": [ + "null", + "string" + ] + }, + "has_scheduled_advance_invoices": { + "type": [ + "null", + "boolean" + ] + }, + "has_scheduled_changes": { + "type": [ + "null", + "boolean" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "invoice_notes": { + "type": [ + "null", + "string" + ] + }, + "item_tiers": { "items": { "properties": { - "charge_once": { - "type": [ - "null", - "boolean" - ] - }, - "id": { + "ending_unit": { "type": [ "null", - "string" + "integer" ] }, - "object": { + "ending_unit_in_decimal": { "type": [ "null", "string" ] }, - "on_event": { + "item_price_id": { "type": [ "null", "string" ] }, - "quantity": { + "price": { "type": [ "null", "integer" ] }, - "quantity_in_decimal": { + "price_in_decimal": { "type": [ "null", "string" ] }, - "unit_price": { + "starting_unit": { "type": [ "null", "integer" ] }, - "unit_price_in_decimal": { + "starting_unit_in_decimal": { "type": [ "null", "string" @@ -6613,54 +6429,6 @@ "array" ] }, - "exchange_rate": { - "type": [ - "null", - "number" - ] - }, - "free_period": { - "type": [ - "null", - "integer" - ] - }, - "free_period_unit": { - "type": [ - "null", - "string" - ] - }, - "gift_id": { - "type": [ - "null", - "string" - ] - }, - "has_scheduled_advance_invoices": { - "type": [ - "null", - "boolean" - ] - }, - "has_scheduled_changes": { - "type": [ - "null", - "boolean" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "invoice_notes": { - "type": [ - "null", - "string" - ] - }, "meta_data": { "type": [ "null", @@ -6685,12 +6453,6 @@ "string" ] }, - "offline_payment_method": { - "type": [ - "null", - "string" - ] - }, "override_relationship": { "type": [ "null", @@ -6709,54 +6471,24 @@ "string" ] }, - "plan_amount": { - "type": [ - "null", - "integer" - ] - }, "plan_amount_in_decimal": { "type": [ "null", "string" ] }, - "plan_free_quantity": { - "type": [ - "null", - "integer" - ] - }, "plan_free_quantity_in_decimal": { "type": [ "null", "string" ] }, - "plan_id": { - "type": [ - "null", - "string" - ] - }, - "plan_quantity": { - "type": [ - "null", - "integer" - ] - }, "plan_quantity_in_decimal": { "type": [ "null", "string" ] }, - "plan_unit_price": { - "type": [ - "null", - "integer" - ] - }, "plan_unit_price_in_decimal": { "type": [ "null", @@ -6879,12 +6611,6 @@ "date-time" ] }, - "setup_fee": { - "type": [ - "null", - "integer" - ] - }, "shipping_address": { "properties": { "city": { @@ -7001,6 +6727,122 @@ "string" ] }, + "subscription_items": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "integer" + ] + }, + "amount_in_decimal": { + "type": [ + "null", + "string" + ] + }, + "billing_cycles": { + "type": [ + "null", + "integer" + ] + }, + "charge_on_event": { + "type": [ + "null", + "string" + ] + }, + "charge_on_option": { + "type": [ + "null", + "string" + ] + }, + "charge_once": { + "type": [ + "null", + "boolean" + ] + }, + "free_quantity": { + "type": [ + "null", + "integer" + ] + }, + "free_quantity_in_decimal": { + "type": [ + "null", + "string" + ] + }, + "item_price_id": { + "type": [ + "null", + "string" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "quantity_in_decimal": { + "type": [ + "null", + "string" + ] + }, + "service_period_days": { + "type": [ + "null", + "integer" + ] + }, + "trial_end": { + "type": [ + "null", + "date-time" + ] + }, + "unit_price": { + "type": [ + "null", + "integer" + ] + }, + "unit_price_in_decimal": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, "total_dues": { "type": [ "null", diff --git a/_data/taps/schemas/chargebee/v1/json/invoices.json b/_data/taps/schemas/chargebee/v1/json/invoices.json index 9c017fe54..390314411 100644 --- a/_data/taps/schemas/chargebee/v1/json/invoices.json +++ b/_data/taps/schemas/chargebee/v1/json/invoices.json @@ -826,7 +826,6 @@ "tax_rate": { "type": [ "null", - "integer", "number" ] }, diff --git a/_data/taps/schemas/chargebee/v1/json/subscriptions.json b/_data/taps/schemas/chargebee/v1/json/subscriptions.json index 07beb8bbf..579928596 100644 --- a/_data/taps/schemas/chargebee/v1/json/subscriptions.json +++ b/_data/taps/schemas/chargebee/v1/json/subscriptions.json @@ -7,86 +7,6 @@ "date-time" ] }, - "addons": { - "items": { - "properties": { - "amount": { - "type": [ - "null", - "integer" - ] - }, - "amount_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "object": { - "type": [ - "null", - "string" - ] - }, - "quantity": { - "type": [ - "null", - "integer" - ] - }, - "quantity_in_decimal": { - "type": [ - "null", - "string" - ] - }, - "remaining_billing_cycles": { - "type": [ - "null", - "integer" - ] - }, - "trial_end": { - "type": [ - "null", - "date-time" - ] - }, - "unit_price": { - "type": [ - "null", - "integer" - ] - }, - "unit_price_in_decimal": { - "type": [ - "null", - "string" - ] - } - }, - "type": [ - "null", - "object" - ] - }, - "type": [ - "null", - "array" - ] - }, - "affiliate_token": { - "type": [ - "null", - "string" - ] - }, "auto_close_invoices": { "type": [ "null", @@ -153,10 +73,10 @@ "string" ] }, - "charged_event_based_addons": { + "charged_items": { "items": { "properties": { - "id": { + "item_price_id": { "type": [ "null", "string" @@ -381,52 +301,88 @@ "date-time" ] }, - "event_based_addons": { + "exchange_rate": { + "type": [ + "null", + "number" + ] + }, + "free_period": { + "type": [ + "null", + "integer" + ] + }, + "free_period_unit": { + "type": [ + "null", + "string" + ] + }, + "has_scheduled_advance_invoices": { + "type": [ + "null", + "boolean" + ] + }, + "has_scheduled_changes": { + "type": [ + "null", + "boolean" + ] + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "invoice_notes": { + "type": [ + "null", + "string" + ] + }, + "item_tiers": { "items": { "properties": { - "charge_once": { - "type": [ - "null", - "boolean" - ] - }, - "id": { + "ending_unit": { "type": [ "null", - "string" + "integer" ] }, - "object": { + "ending_unit_in_decimal": { "type": [ "null", "string" ] }, - "on_event": { + "item_price_id": { "type": [ "null", "string" ] }, - "quantity": { + "price": { "type": [ "null", "integer" ] }, - "quantity_in_decimal": { + "price_in_decimal": { "type": [ "null", "string" ] }, - "unit_price": { + "starting_unit": { "type": [ "null", "integer" ] }, - "unit_price_in_decimal": { + "starting_unit_in_decimal": { "type": [ "null", "string" @@ -443,54 +399,6 @@ "array" ] }, - "exchange_rate": { - "type": [ - "null", - "number" - ] - }, - "free_period": { - "type": [ - "null", - "integer" - ] - }, - "free_period_unit": { - "type": [ - "null", - "string" - ] - }, - "gift_id": { - "type": [ - "null", - "string" - ] - }, - "has_scheduled_advance_invoices": { - "type": [ - "null", - "boolean" - ] - }, - "has_scheduled_changes": { - "type": [ - "null", - "boolean" - ] - }, - "id": { - "type": [ - "null", - "string" - ] - }, - "invoice_notes": { - "type": [ - "null", - "string" - ] - }, "meta_data": { "type": [ "null", @@ -515,12 +423,6 @@ "string" ] }, - "offline_payment_method": { - "type": [ - "null", - "string" - ] - }, "override_relationship": { "type": [ "null", @@ -539,54 +441,24 @@ "string" ] }, - "plan_amount": { - "type": [ - "null", - "integer" - ] - }, "plan_amount_in_decimal": { "type": [ "null", "string" ] }, - "plan_free_quantity": { - "type": [ - "null", - "integer" - ] - }, "plan_free_quantity_in_decimal": { "type": [ "null", "string" ] }, - "plan_id": { - "type": [ - "null", - "string" - ] - }, - "plan_quantity": { - "type": [ - "null", - "integer" - ] - }, "plan_quantity_in_decimal": { "type": [ "null", "string" ] }, - "plan_unit_price": { - "type": [ - "null", - "integer" - ] - }, "plan_unit_price_in_decimal": { "type": [ "null", @@ -709,12 +581,6 @@ "date-time" ] }, - "setup_fee": { - "type": [ - "null", - "integer" - ] - }, "shipping_address": { "properties": { "city": { @@ -831,6 +697,122 @@ "string" ] }, + "subscription_items": { + "items": { + "properties": { + "amount": { + "type": [ + "null", + "integer" + ] + }, + "amount_in_decimal": { + "type": [ + "null", + "string" + ] + }, + "billing_cycles": { + "type": [ + "null", + "integer" + ] + }, + "charge_on_event": { + "type": [ + "null", + "string" + ] + }, + "charge_on_option": { + "type": [ + "null", + "string" + ] + }, + "charge_once": { + "type": [ + "null", + "boolean" + ] + }, + "free_quantity": { + "type": [ + "null", + "integer" + ] + }, + "free_quantity_in_decimal": { + "type": [ + "null", + "string" + ] + }, + "item_price_id": { + "type": [ + "null", + "string" + ] + }, + "item_type": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "quantity_in_decimal": { + "type": [ + "null", + "string" + ] + }, + "service_period_days": { + "type": [ + "null", + "integer" + ] + }, + "trial_end": { + "type": [ + "null", + "date-time" + ] + }, + "unit_price": { + "type": [ + "null", + "integer" + ] + }, + "unit_price_in_decimal": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, "total_dues": { "type": [ "null",