diff --git a/tap_chargebee/schemas/credit_notes.json b/tap_chargebee/schemas/credit_notes.json index c17728d..b8c70fa 100644 --- a/tap_chargebee/schemas/credit_notes.json +++ b/tap_chargebee/schemas/credit_notes.json @@ -42,6 +42,13 @@ "type": ["null", "string"], "maxLength": 3 }, + "base_currency_code": { + "type": ["null", "string"], + "maxLength": 3 + }, + "object": { + "type": ["null", "string"] + }, "total": { "type": ["null", "integer"], "minimum": 0 @@ -78,8 +85,13 @@ "minimum": 0 }, "round_off_amount": { - "type": ["null", "integer"], - "minimum": 0 + "type": ["null", "integer"] + }, + "exchange_rate": { + "type": ["null", "integer"] + }, + "fractional_correction": { + "type": ["null", "integer"] }, "deleted": { "type": ["null", "boolean"] @@ -96,6 +108,12 @@ "subscription_id": { "type": ["null", "string"] }, + "customer_id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, "date_from": { "type": ["null", "string"], "format": "date-time" diff --git a/tap_chargebee/schemas/customers.json b/tap_chargebee/schemas/customers.json index 9d56d36..7e10b33 100644 --- a/tap_chargebee/schemas/customers.json +++ b/tap_chargebee/schemas/customers.json @@ -79,6 +79,9 @@ "cf_company_id": { "type": ["null","integer"] }, + "use_default_hierarchy_settings": { + "type": ["null","boolean"] + }, "allow_direct_debit": { "type": ["null", "boolean"] }, @@ -140,46 +143,6 @@ "custom_fields": { "type": ["null", "string"] }, - "vat_number_validated_time": { - "type": ["null", "string"], - "format": "date-time" - }, - "vat_number_status": { - "type": ["null", "string"] - }, - "is_location_valid": { - "type": ["null", "boolean"] - }, - "created_from_ip": { - "type": ["null", "string"] - }, - "entity_code": { - "type": ["null", "string"] - }, - "exempt_number": { - "type": ["null", "string"] - }, - "resource_version": { - "type": ["null", "integer"] - }, - "fraud_flag": { - "type": ["null", "string"] - }, - "backup_payment_source_id": { - "type": ["null", "string"] - }, - "registered_for_gst": { - "type": ["null", "boolean"] - }, - "customer_type": { - "type": ["null", "string"] - }, - "meta_data": { - "type": ["null", "string"] - }, - "exemption_details": { - "type": ["null", "string"] - }, "billing_address": { "type": ["null","object"], "properties": { @@ -222,7 +185,10 @@ "zip": { "type": ["null", "string"] }, - "validation_status,": { + "validation_status": { + "type": ["null", "string"] + }, + "object": { "type": ["null", "string"] } } @@ -308,7 +274,7 @@ "gateway": { "type": ["null", "string"] }, - "gateway_account_id ": { + "gateway_account_id": { "type": ["null", "string"] }, "status": { @@ -333,7 +299,7 @@ "excess_payments": { "type": ["null", "integer"] }, - "refundable_credits ": { + "refundable_credits": { "type": ["null", "integer"] }, "unbilled_charges": { @@ -341,9 +307,129 @@ }, "currency_code": { "type": ["null", "string"] + }, + "base_currency_code": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] } } } + }, + "relationship": { + "type": [ + "null", + "object" + ], + "properties": { + "parent_id": { + "type": [ + "null", + "string" + ] + }, + "payment_owner_id": { + "type": [ + "null", + "string" + ] + }, + "root_id": { + "type": [ + "null", + "string" + ] + }, + "invoice_owner_id": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + } + } + }, + "parent_account_access": { + "type": [ + "null", + "object" + ], + "properties": { + "portal_edit_child_subscriptions": { + "type": [ + "null", + "string" + ] + }, + "portal_download_child_invoices": { + "type": [ + "null", + "string" + ] + }, + "send_subscription_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_invoice_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_payment_emails": { + "type": [ + "null", + "boolean" + ] + } + } + }, + "child_account_access": { + "type": [ + "null", + "object" + ], + "properties": { + "portal_edit_subscriptions": { + "type": [ + "null", + "string" + ] + }, + "portal_download_invoices": { + "type": [ + "null", + "string" + ] + }, + "send_subscription_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_invoice_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_payment_emails": { + "type": [ + "null", + "boolean" + ] + } + } } } } diff --git a/tap_chargebee/schemas/events.json b/tap_chargebee/schemas/events.json index 54dd774..50ae9c8 100644 --- a/tap_chargebee/schemas/events.json +++ b/tap_chargebee/schemas/events.json @@ -27,6 +27,26 @@ "webhook_status": { "type": ["null", "string"] }, + "webhook_failure_reason": { + "type": ["null", "string"] + }, + "webhooks": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "webhook_status": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + } + } + } + }, "content": { "type": ["null", "object"], "properties" : { @@ -345,12 +365,20 @@ "minimum": 0 }, "round_off_amount": { - "type": ["null", "integer"], - "minimum": 0 + "type": ["null", "integer"] }, "deleted": { "type": ["null", "boolean"] }, + "exchange_rate": { + "type": ["null", "integer"] + }, + "fractional_correction": { + "type": ["null", "integer"] + }, + "object": { + "type": ["null", "string"] + }, "line_items": { "type": ["null", "array"], "items": { @@ -363,6 +391,12 @@ "subscription_id": { "type": ["null", "string"] }, + "object": { + "type": ["null", "string"] + }, + "customer_id": { + "type": ["null", "string"] + }, "date_from": { "type": ["null", "string"], "format": "date-time" @@ -761,6 +795,9 @@ "custom_fields": { "type": ["null", "string"] }, + "use_default_hierarchy_settings": { + "type": ["null", "boolean"] + }, "billing_address": { "type": ["null","object"], "properties": { @@ -803,7 +840,10 @@ "zip": { "type": ["null", "string"] }, - "validation_status,": { + "validation_status": { + "type": ["null", "string"] + }, + "object": { "type": ["null", "string"] } } @@ -842,6 +882,120 @@ } } }, + "relationship": { + "type": [ + "null", + "object" + ], + "properties": { + "parent_id": { + "type": [ + "null", + "string" + ] + }, + "payment_owner_id": { + "type": [ + "null", + "string" + ] + }, + "root_id": { + "type": [ + "null", + "string" + ] + }, + "invoice_owner_id": { + "type": [ + "null", + "string" + ] + }, + "object": { + "type": [ + "null", + "string" + ] + } + } + }, + "parent_account_access": { + "type": [ + "null", + "object" + ], + "properties": { + "portal_edit_child_subscriptions": { + "type": [ + "null", + "string" + ] + }, + "portal_download_child_invoices": { + "type": [ + "null", + "string" + ] + }, + "send_subscription_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_invoice_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_payment_emails": { + "type": [ + "null", + "boolean" + ] + } + } + }, + "child_account_access": { + "type": [ + "null", + "object" + ], + "properties": { + "portal_edit_subscriptions": { + "type": [ + "null", + "string" + ] + }, + "portal_download_invoices": { + "type": [ + "null", + "string" + ] + }, + "send_subscription_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_invoice_emails": { + "type": [ + "null", + "boolean" + ] + }, + "send_payment_emails": { + "type": [ + "null", + "boolean" + ] + } + } + }, "contacts": { "type": ["null", "array"], "items": { @@ -889,7 +1043,7 @@ "gateway": { "type": ["null", "string"] }, - "gateway_account_id ": { + "gateway_account_id": { "type": ["null", "string"] }, "status": { @@ -914,7 +1068,7 @@ "excess_payments": { "type": ["null", "integer"] }, - "refundable_credits ": { + "refundable_credits": { "type": ["null", "integer"] }, "unbilled_charges": { @@ -922,6 +1076,12 @@ }, "currency_code": { "type": ["null", "string"] + }, + "balance_currency_code": { + "type": [ "null", "string"] + }, + "object": { + "type": ["null", "string"] } } } @@ -1119,6 +1279,9 @@ "term_finalized": { "type": ["null", "boolean"] }, + "payment_owner": { + "type": ["null", "string"] + }, "line_items": { "type": ["null", "array"], "items": { @@ -1130,6 +1293,9 @@ "subscription_id": { "type": ["null", "string"] }, + "customer_id": { + "type": ["null", "string"] + }, "date_from": { "type": ["null", "string"], "format": "date-time" @@ -1500,7 +1666,10 @@ "zip": { "type": ["null", "string"] }, - "validation_status,": { + "validation_status": { + "type": ["null", "string"] + }, + "object": { "type": ["null", "string"] } } @@ -1555,6 +1724,57 @@ } } }, + "dunning_attempts": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "attempt": { + "type": [ + "null", + "integer" + ] + }, + "transaction_id": { + "type": [ + "null", + "string" + ] + }, + "dunning_type": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "string" + ], + "format": "date-time" + }, + "txn_status": { + "type": [ + "null", + "string" + ] + }, + "txn_amount": { + "type": [ + "null", + "integer" + ] + } + } + } + }, "exchange_rate": { "type": ["null", "number"] }, @@ -2204,6 +2424,18 @@ "custom_fields": { "type": ["null", "string"] }, + "currency_code": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "show_description_in_invoices": { + "type": ["null", "boolean"] + }, + "show_description_in_quotes": { + "type": ["null", "boolean"] + }, "tiers": { "type": ["null", "array"], "items": { @@ -2217,6 +2449,9 @@ }, "price": { "type": ["null", "integer"] + }, + "object": { + "type": ["null", "string"] } } } @@ -2305,6 +2540,9 @@ "id": { "type": ["null", "string"] }, + "override_relationship": { + "type": ["null", "boolean"] + }, "customer_id": { "type": ["null", "string"] }, @@ -2597,7 +2835,10 @@ "zip": { "type": ["null", "string"] }, - "validation_status,": { + "validation_status": { + "type": ["null", "string"] + }, + "object": { "type": ["null", "string"] } } @@ -2648,6 +2889,50 @@ "type": ["null", "boolean"] } } + }, + "contract_term": { + "type": ["null","object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "contract_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "contract_end": { + "type": ["null", "string"], + "format": "date-time" + }, + "billing_cycle": { + "type": ["null", "integer"] + }, + "action_at_term_end": { + "type": ["null", "string"] + }, + "total_contract_value": { + "type": ["null", "integer"] + }, + "cancellation_cutoff_period": { + "type": ["null", "integer"] + }, + "created_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "subscription_id": { + "type": ["null", "string"] + }, + "remaining_billing_cycles": { + "type": ["null", "integer"] + }, + "total_amount_raised": { + "type": ["null", "integer"] + } + } } } }, @@ -3430,8 +3715,7 @@ } } } - } - + } } } } diff --git a/tap_chargebee/schemas/invoices.json b/tap_chargebee/schemas/invoices.json index 556d300..a79a036 100644 --- a/tap_chargebee/schemas/invoices.json +++ b/tap_chargebee/schemas/invoices.json @@ -11,6 +11,9 @@ "customer_id": { "type": ["null", "string"] }, + "payment_owner": { + "type": ["null", "string"] + }, "recurring": { "type": ["null", "boolean"] }, @@ -119,6 +122,9 @@ "subscription_id": { "type": ["null", "string"] }, + "customer_id": { + "type": ["null", "string"] + }, "date_from": { "type": ["null", "string"], "format": "date-time" @@ -172,6 +178,39 @@ } } }, + "dunning_attempts": { + "type": [ + "null", + "array" + ], + "items": { + "type": [ + "null", + "object" + ], + "properties": { + "attempt": { + "type": ["null", "integer"] + }, + "transaction_id": { + "type": ["null", "string"] + }, + "dunning_type": { + "type": ["null", "string"] + }, + "created_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "txn_status": { + "type": ["null", "string"] + }, + "txn_amount": { + "type": ["null", "integer"] + } + } + } + }, "discounts": { "type": ["null", "array"], "items": { @@ -489,7 +528,10 @@ "zip": { "type": ["null", "string"] }, - "validation_status,": { + "validation_status": { + "type": ["null", "string"] + }, + "object": { "type": ["null", "string"] } } @@ -558,9 +600,6 @@ }, "subscription_id": { "type": ["null", "string"] - }, - "total": { - "type": ["null", "integer"] } } } diff --git a/tap_chargebee/schemas/plans.json b/tap_chargebee/schemas/plans.json index f90cc72..55127c3 100644 --- a/tap_chargebee/schemas/plans.json +++ b/tap_chargebee/schemas/plans.json @@ -79,6 +79,33 @@ "tax_code": { "type": ["null", "string"] }, + "currency_code": { + "type": ["null", "string"] + }, + "giftable": { + "type": ["null", "boolean"] + }, + "is_shippable": { + "type": ["null", "boolean"] + }, + "meta_data": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "pricing_model": { + "type": ["null", "string"] + }, + "resource_version": { + "type": ["null", "integer"] + }, + "show_description_in_invoices": { + "type": ["null", "boolean"] + }, + "show_description_in_quotes": { + "type": ["null", "boolean"] + }, "avalara_sale_type": { "type": ["null", "string"] }, @@ -97,27 +124,15 @@ "accounting_category2": { "type": ["null", "string"] }, - "is_shippable": { - "type": ["null", "boolean"] - }, "shipping_frequency_period": { "type": ["null", "integer"] }, "shipping_frequency_period_unit": { "type": ["null", "string"] }, - "resource_version": { - "type": ["null", "integer"] - }, - "giftable": { - "type": ["null", "boolean"] - }, "claim_url": { "type": ["null", "string"] }, - "meta_data": { - "type": ["null", "string"] - }, "custom_fields": { "type": ["null", "string"] }, @@ -134,6 +149,9 @@ }, "price": { "type": ["null", "integer"] + }, + "object": { + "type": ["null", "string"] } } } @@ -168,6 +186,26 @@ } } } + }, + "attached_addons": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "billing_cycles": { + "type": ["null", "integer"] + }, + "type": { + "type": ["null", "string"] + } + } + } } } } diff --git a/tap_chargebee/schemas/subscriptions.json b/tap_chargebee/schemas/subscriptions.json index 831c814..52e9b3f 100644 --- a/tap_chargebee/schemas/subscriptions.json +++ b/tap_chargebee/schemas/subscriptions.json @@ -61,6 +61,9 @@ "po_number": { "type": ["null", "string"] }, + "override_relationship": { + "type": ["null", "boolean"] + }, "created_at": { "type": ["null", "string"], "format": "date-time" @@ -297,7 +300,10 @@ "zip": { "type": ["null", "string"] }, - "validation_status,": { + "validation_status": { + "type": ["null", "string"] + }, + "object": { "type": ["null", "string"] } } @@ -348,6 +354,50 @@ "type": ["null", "boolean"] } } + }, + "contract_term": { + "type": ["null","object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "contract_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "contract_end": { + "type": ["null", "string"], + "format": "date-time" + }, + "billing_cycle": { + "type": ["null", "integer"] + }, + "action_at_term_end": { + "type": ["null", "string"] + }, + "total_contract_value": { + "type": ["null", "integer"] + }, + "cancellation_cutoff_period": { + "type": ["null", "integer"] + }, + "created_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "subscription_id": { + "type": ["null", "string"] + }, + "remaining_billing_cycles": { + "type": ["null", "integer"] + }, + "total_amount_raised": { + "type": ["null", "integer"] + } + } } } }