diff --git a/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml b/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml index 4a52973f0937..e7ce8a221fb0 100644 --- a/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml @@ -28,24 +28,22 @@ acceptance_tests: bypass_reason: "Not available for Product Catalog 2.0 sites." - name: "virtual_bank_account" bypass_reason: "Cannot populate with test data" - - name: "unbilled_charge" - bypass_reason: "Empty stream. Unstable data" - - name: "hosted_page" - bypass_reason: "Empty stream. Unstable data" - name: "event" - bypass_reason: "Unstable data. Updated daily." + bypass_reason: "Unstable data. Test data is not persistent." - name: "site_migration_detail" bypass_reason: "Cannnot populate with test data." - ignored_fields: - subscription: - - name: "current_term_start" - bypass_reason: "Field updated daily." + - name: "customer" + bypass_reason: "To be Tested with integration tests." + - name: "subscription" + bypass_reason: "To be Tested with integration tests." + - name: "coupon" + bypass_reason: "To be Tested with integration tests." expect_records: path: "integration_tests/expected_records.jsonl" extra_fields: no exact_order: no extra_records: yes - fail_on_extra_columns: false + fail_on_extra_columns: true incremental: tests: - config_path: "secrets/config.json" @@ -54,12 +52,12 @@ acceptance_tests: future_state: future_state_path: "integration_tests/future_state.json" missing_streams: - - name: attached_item - bypass_reason: "This stream is Full-Refresh only" - name: contact bypass_reason: "This stream is Full-Refresh only" - name: quote_line_group bypass_reason: "This stream is Full-Refresh only" + - name: attached_item + bypass_reason: "This stream is Full-Refresh only" full_refresh: tests: - config_path: "secrets/config.json" diff --git a/airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json index b2ae2de6b192..8adc9742557e 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json @@ -13,44 +13,6 @@ "destination_sync_mode": "append", "cursor_field": ["updated_at"] }, - { - "stream": { - "name": "event", - "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["occurred_at"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "append", - "cursor_field": ["occurred_at"] - }, - { - "stream": { - "name": "customer", - "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "append", - "cursor_field": ["updated_at"] - }, - { - "stream": { - "name": "contact", - "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "full_refresh", - "destination_sync_mode": "append" - }, { "stream": { "name": "invoice", @@ -107,13 +69,11 @@ "stream": { "name": "attached_item", "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], + "supported_sync_modes": ["full_refresh"], "source_defined_primary_key": [["id"]] }, "sync_mode": "full_refresh", - "destination_sync_mode": "append" + "destination_sync_mode": "overwrite" }, { "stream": { @@ -147,7 +107,7 @@ "json_schema": {}, "supported_sync_modes": ["full_refresh", "incremental"], "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], + "default_cursor_field": ["created_at"], "source_defined_primary_key": [["id"]] }, "sync_mode": "incremental", @@ -160,25 +120,12 @@ "json_schema": {}, "supported_sync_modes": ["full_refresh", "incremental"], "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "append", - "cursor_field": ["updated_at"] - }, - { - "stream": { - "name": "coupon", - "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], - "source_defined_primary_key": [["id"]] + "source_defined_primary_key": [["id"]], + "default_cursor_field": ["created_at"] }, "sync_mode": "incremental", "destination_sync_mode": "append", - "cursor_field": ["updated_at"] + "cursor_field": ["created_at"] }, { "stream": { @@ -212,8 +159,8 @@ "json_schema": {}, "supported_sync_modes": ["full_refresh", "incremental"], "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], - "source_defined_primary_key": [["id"]] + "source_defined_primary_key": [["id"]], + "default_cursor_field": ["updated_at"] }, "sync_mode": "incremental", "destination_sync_mode": "append", @@ -236,26 +183,11 @@ "stream": { "name": "quote_line_group", "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["updated_at"], + "supported_sync_modes": ["full_refresh"], "source_defined_primary_key": [["id"]] }, "sync_mode": "full_refresh", - "destination_sync_mode": "append" - }, - { - "stream": { - "name": "site_migration_detail", - "json_schema": {}, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["migrated_at"], - "source_defined_primary_key": [["entity_id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "append", - "cursor_field": ["migrated_at"] + "destination_sync_mode": "overwrite" }, { "stream": { diff --git a/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl b/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl index 9007c7adbdf3..1ef91d437747 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl @@ -1,53 +1,51 @@ -{"stream":"contact","data":{"id":"0000002","first_name":"User2","last_name":"Sample","email":"user2.sample.airbyte@gmail.com","phone":"+13335556789","label":"Tag2","enabled":true,"send_account_email":true,"send_billing_email":true,"object":"contact","custom_fields":[]},"emitted_at":1676569185767} -{"stream":"contact","data":{"id":"Test 1","first_name":"Sample Name 1","last_name":"Sample Lastname 1","email":"name1@example.com","enabled":true,"send_account_email":false,"send_billing_email":false,"object":"contact","custom_fields":[]},"emitted_at":1676569186037} -{"stream":"contact","data":{"id":"Test Contact 2","first_name":"Sample Name Two","last_name":"Sample Lastname 2","email":"name2@example.com","phone":"+13888433888","enabled":true,"send_account_email":false,"send_billing_email":false,"object":"contact","custom_fields":[]},"emitted_at":1676569186337} +{"stream": "contact", "data": {"id": "0000002", "first_name": "User2", "last_name": "Sample", "email": "user2.sample.airbyte@gmail.com", "phone": "+13335556789", "label": "Tag2", "enabled": true, "send_account_email": true, "send_billing_email": true, "object": "contact", "customer_id": "Azz5jBTTJ96UqlvE", "custom_fields": []}, "emitted_at": 1706028645460} +{"stream": "contact", "data": {"id": "Test 1", "first_name": "Sample Name 1", "last_name": "Sample Lastname 1", "email": "name1@example.com", "enabled": true, "send_account_email": false, "send_billing_email": false, "object": "contact", "customer_id": "cbdemo_richard", "custom_fields": []}, "emitted_at": 1706028645946} +{"stream": "contact", "data": {"id": "Test Contact 2", "first_name": "Sample Name Two", "last_name": "Sample Lastname 2", "email": "name2@example.com", "phone": "+13888433888", "enabled": true, "send_account_email": false, "send_billing_email": false, "object": "contact", "customer_id": "Test-Custome-1", "custom_fields": []}, "emitted_at": 1706028645251} {"stream": "order", "data": {"id": "1", "document_number": "lol1", "invoice_id": "24", "subscription_id": "6olOsTTHieWUY9", "customer_id": "cbdemo_tyler", "status": "queued", "payment_status": "paid", "order_type": "system_generated", "price_type": "tax_exclusive", "order_date": 1674036524, "shipping_date": 1674036524, "created_by": "Auto generated by system", "tax": 0, "amount_paid": 1000, "amount_adjusted": 0, "refundable_credits_issued": 0, "refundable_credits": 1000, "rounding_adjustement": 0, "paid_on": 1674036524, "exchange_rate": 1.0, "created_at": 1674036525, "updated_at": 1674036525, "is_resent": false, "resource_version": 1674036525755, "deleted": false, "object": "order", "discount": 0, "sub_total": 1000, "order_line_items": [{"id": "o_li169lB6TTHiez02Fb4", "invoice_id": "24", "invoice_line_item_id": "li_6olOsTTHieX6YB", "unit_price": 1000, "amount": 1000, "fulfillment_quantity": 1, "fulfillment_amount": 1000, "tax_amount": 0, "amount_paid": 1000, "amount_adjusted": 0, "refundable_credits_issued": 0, "refundable_credits": 1000, "is_shippable": true, "status": "queued", "object": "order_line_item", "entity_id": "Test-Plan-1-USD-Daily", "discount_amount": 0, "item_level_discount_amount": 0, "description": "Test Plan 1", "entity_type": "plan_item_price"}], "total": 1000, "currency_code": "USD", "base_currency_code": "USD", "is_gifted": false, "billing_address": {"first_name": "Tyler", "last_name": "Durden", "company": "Iselectrics", "validation_status": "not_validated", "object": "billing_address"}, "linked_credit_notes": [], "resent_orders": [], "custom_fields": []}, "emitted_at": 1703026216053} {"stream": "order", "data": {"id": "2", "document_number": "lol2", "invoice_id": "25", "subscription_id": "AzZTZgTTHixMHV3", "customer_id": "cbdemo_richard", "status": "queued", "payment_status": "paid", "order_type": "system_generated", "price_type": "tax_exclusive", "order_date": 1674036596, "shipping_date": 1674036596, "created_by": "Auto generated by system", "tax": 0, "amount_paid": 1000, "amount_adjusted": 0, "refundable_credits_issued": 0, "refundable_credits": 1000, "rounding_adjustement": 0, "paid_on": 1674036596, "exchange_rate": 1.0, "created_at": 1674036599, "updated_at": 1674036684, "is_resent": false, "resource_version": 1674036684213, "deleted": false, "object": "order", "discount": 0, "sub_total": 1000, "order_line_items": [{"id": "o_li16CQyCTTHiy9912Tu", "invoice_id": "25", "invoice_line_item_id": "li_AzZTZgTTHixMhV5", "unit_price": 1000, "amount": 1000, "fulfillment_quantity": 1, "fulfillment_amount": 1000, "tax_amount": 0, "amount_paid": 1000, "amount_adjusted": 0, "refundable_credits_issued": 0, "refundable_credits": 1000, "is_shippable": true, "status": "queued", "object": "order_line_item", "entity_id": "Test-Plan-1-USD-Daily", "discount_amount": 0, "item_level_discount_amount": 0, "description": "Test Plan 1", "entity_type": "plan_item_price"}], "total": 1000, "currency_code": "USD", "base_currency_code": "USD", "is_gifted": false, "shipping_address": {"first_name": "Sample Name 1", "last_name": "Sample Lastname 1", "email": "name1@example.com", "company": "Semiconductors", "phone": "+1 382 846 3883", "line1": "Ms Ninette Franck", "line2": "4381", "city": "San Francisco", "state_code": "CA", "state": "California", "country": "US", "zip": "94114", "validation_status": "not_validated", "object": "shipping_address"}, "billing_address": {"first_name": "Richard", "last_name": "Hendricks", "company": "Zencorporation", "validation_status": "not_validated", "object": "billing_address"}, "linked_credit_notes": [], "resent_orders": [], "custom_fields": []}, "emitted_at": 1703026216060} {"stream": "order", "data": {"id": "3", "document_number": "lol3", "invoice_id": "26", "subscription_id": "AzZTZgTTHmX8Gc1", "customer_id": "cbdemo_simon", "status": "queued", "payment_status": "paid", "order_type": "system_generated", "price_type": "tax_exclusive", "order_date": 1674037448, "shipping_date": 1674037448, "created_by": "Auto generated by system", "tax": 0, "amount_paid": 700, "amount_adjusted": 0, "refundable_credits_issued": 0, "refundable_credits": 700, "rounding_adjustement": 0, "paid_on": 1674037448, "exchange_rate": 1.0, "created_at": 1674037452, "updated_at": 1674037452, "is_resent": false, "resource_version": 1674037452271, "deleted": false, "object": "order", "discount": 300, "sub_total": 700, "order_line_items": [{"id": "o_liAzZZMnTTHmY0s1O7g", "invoice_id": "26", "invoice_line_item_id": "li_AzZTZgTTHmX93c3", "unit_price": 1000, "amount": 1000, "fulfillment_quantity": 1, "fulfillment_amount": 700, "tax_amount": 0, "amount_paid": 700, "amount_adjusted": 0, "refundable_credits_issued": 0, "refundable_credits": 700, "is_shippable": true, "status": "queued", "object": "order_line_item", "entity_id": "Test-Plan-1-USD-Daily", "discount_amount": 300, "item_level_discount_amount": 300, "description": "Test Plan 1", "entity_type": "plan_item_price"}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "li_AzZTZgTTHmX93c3", "discount_type": "item_level_coupon", "discount_amount": 300, "coupon_id": "cbdemo_launchoffer", "entity_id": "cbdemo_launchoffer"}], "total": 700, "currency_code": "USD", "base_currency_code": "USD", "is_gifted": false, "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "linked_credit_notes": [], "resent_orders": [], "custom_fields": []}, "emitted_at": 1703026216066} {"stream": "item", "data": {"id": "cbdemo_advanced", "name": "Advanced", "external_name": "Advanced", "description": "Uncover hidden insights and carry out deeper analytics for your enterprise with this advanced plan.", "status": "active", "resource_version": 1674035640445, "updated_at": 1674035640, "item_family_id": "cbdemo_pf_analytics", "type": "plan", "is_shippable": true, "is_giftable": false, "enabled_for_checkout": true, "enabled_in_portal": true, "item_applicability": "all", "metered": false, "channel": "web", "metadata": {}, "object": "item", "custom_fields": []}, "emitted_at": 1678971136879} {"stream": "item", "data": {"id": "cbdemo_basic", "name": "Basic", "external_name": "Basic", "description": "Starter plan for all your basic reporting requirements.", "status": "active", "resource_version": 1674035673162, "updated_at": 1674035673, "item_family_id": "cbdemo_pf_analytics", "type": "plan", "is_shippable": true, "is_giftable": false, "enabled_for_checkout": true, "enabled_in_portal": true, "item_applicability": "all", "metered": false, "channel": "web", "metadata": {}, "object": "item", "custom_fields": []}, "emitted_at": 1678971136891} {"stream": "item", "data": {"id": "cbdemo_intermediary", "name": "Intermediary", "external_name": "Intermediary", "description": "Smart plan with the right mix of basic and slightly advanced reporting tools.", "status": "active", "resource_version": 1674035686971, "updated_at": 1674035686, "item_family_id": "cbdemo_pf_analytics", "type": "plan", "is_shippable": true, "is_giftable": false, "enabled_for_checkout": true, "enabled_in_portal": true, "item_applicability": "all", "metered": false, "channel": "web", "metadata": {}, "object": "item", "custom_fields": []}, "emitted_at": 1678971136900} -{"stream":"attached_item","data":{"id":"e49c6ed7-9f1b-4c79-9235-549ce8ae9a1f","parent_item_id":"cbdemo_advanced","item_id":"cbdemo_setup_charge","status":"active","charge_on_event":"subscription_trial_start","charge_once":false,"created_at":1674032839,"resource_version":1674032839573,"updated_at":1674032839,"object":"attached_item","custom_fields":[]},"emitted_at":1676569205846} -{"stream":"attached_item","data":{"id":"25976ccf-8e44-4fce-8eab-2a1658eb0a2b","parent_item_id":"cbdemo_advanced","item_id":"cbdemo_analytics_additionalusers","type":"mandatory","status":"active","quantity":1,"created_at":1674032827,"resource_version":1674032827801,"updated_at":1674032827,"object":"attached_item","custom_fields":[]},"emitted_at":1676569205849} -{"stream":"attached_item","data":{"id":"69b451b1-e00a-4522-ab6f-027586d24b85","parent_item_id":"cbdemo_basic","item_id":"cbdemo_setup_charge","status":"active","charge_on_event":"subscription_creation","charge_once":false,"created_at":1674032880,"resource_version":1674032880261,"updated_at":1674032880,"object":"attached_item","custom_fields":[]},"emitted_at":1676569206020} +{"stream": "attached_item", "data": {"id": "e49c6ed7-9f1b-4c79-9235-549ce8ae9a1f", "parent_item_id": "cbdemo_advanced", "item_id": "cbdemo_setup_charge", "status": "active", "charge_on_event": "subscription_trial_start", "charge_once": false, "created_at": 1674032839, "resource_version": 1674032839573, "updated_at": 1674032839, "object": "attached_item", "custom_fields": []}, "emitted_at": 1676569205846} +{"stream": "attached_item", "data": {"id": "25976ccf-8e44-4fce-8eab-2a1658eb0a2b", "parent_item_id": "cbdemo_advanced", "item_id": "cbdemo_analytics_additionalusers", "type": "mandatory", "status": "active", "quantity": 1, "created_at": 1674032827, "resource_version": 1674032827801, "updated_at": 1674032827, "object": "attached_item", "custom_fields": []}, "emitted_at": 1676569205849} +{"stream": "attached_item", "data": {"id": "69b451b1-e00a-4522-ab6f-027586d24b85", "parent_item_id": "cbdemo_basic", "item_id": "cbdemo_setup_charge", "status": "active", "charge_on_event": "subscription_creation", "charge_once": false, "created_at": 1674032880, "resource_version": 1674032880261, "updated_at": 1674032880, "object": "attached_item", "custom_fields": []}, "emitted_at": 1676569206020} {"stream": "item_price", "data": {"id": "Test-Plan-1-USD-Daily", "name": "Test Plan 1 USD Daily", "item_family_id": "cbdemo_pf_analytics", "item_id": "Test-Plan-1", "description": "Test", "status": "active", "external_name": "Test Plan 1", "pricing_model": "flat_fee", "price": 1000, "period": 1, "currency_code": "USD", "period_unit": "day", "shipping_period": 1, "shipping_period_unit": "day", "free_quantity": 0, "channel": "web", "resource_version": 1674036400224, "updated_at": 1674036400, "created_at": 1674036400, "invoice_notes": "Test", "is_taxable": true, "item_type": "plan", "show_description_in_invoices": true, "show_description_in_quotes": true, "object": "item_price", "custom_fields": []}, "emitted_at": 1678971392306} {"stream": "item_price", "data": {"id": "Test-Gift-Plan-1-USD-Daily", "name": "Test Gift Plan 1 USD Daily", "item_family_id": "cbdemo_pf_crm", "item_id": "Test-Gift-Plan-1", "description": "Test gift", "status": "active", "external_name": "Test Gift Plan 1", "pricing_model": "flat_fee", "price": 1500, "period": 1, "currency_code": "USD", "period_unit": "day", "shipping_period": 1, "shipping_period_unit": "day", "billing_cycles": 1, "free_quantity": 0, "channel": "web", "resource_version": 1674055340456, "updated_at": 1674055340, "created_at": 1674055340, "invoice_notes": "Test gift", "is_taxable": true, "item_type": "plan", "show_description_in_invoices": true, "show_description_in_quotes": true, "object": "item_price", "custom_fields": []}, "emitted_at": 1678971392312} {"stream": "item_price", "data": {"id": "Test-Gift-Plan-1-USD-Weekly", "name": "Test Gift Plan 1 USD Weekly", "item_family_id": "cbdemo_pf_crm", "item_id": "Test-Gift-Plan-1", "description": "Test", "status": "active", "external_name": "Test Gift Plan 1", "pricing_model": "flat_fee", "price": 20000, "period": 1, "currency_code": "USD", "period_unit": "week", "shipping_period": 1, "shipping_period_unit": "week", "billing_cycles": 1, "free_quantity": 0, "channel": "web", "resource_version": 1674056134136, "updated_at": 1674056134, "created_at": 1674056134, "is_taxable": true, "item_type": "plan", "show_description_in_invoices": true, "show_description_in_quotes": true, "object": "item_price", "custom_fields": []}, "emitted_at": 1678971392319} {"stream": "payment_source", "data": {"id": "pm_Azz5jBTTJ96QflvC", "updated_at": 1674057604, "resource_version": 1674057604123, "deleted": false, "object": "payment_source", "customer_id": "Azz5jBTTJ96Mjlv5", "type": "card", "reference_id": "tok_Azz5jBTTJ96QSlvA", "status": "valid", "gateway": "chargebee", "gateway_account_id": "gw_16CKmRSb2oGddH4", "ip_address": "85.209.47.207", "created_at": 1674057604, "card": {"iin": "411111", "last4": "1111", "funding_type": "credit", "expiry_month": 12, "expiry_year": 2029, "masked_number": "************1111", "object": "card", "brand": "visa"}, "custom_fields": []}, "emitted_at": 1678971627515} {"stream": "payment_source", "data": {"id": "pm_6olPmTVuo8BJuz", "updated_at": 1676446372, "resource_version": 1676446372397, "deleted": false, "object": "payment_source", "customer_id": "Azz5jBTTJ96UqlvE", "type": "card", "reference_id": "tok_6olPmTVuo8B8uy", "status": "valid", "gateway": "chargebee", "gateway_account_id": "gw_16CKmRSb2oGddH4", "created_at": 1676446372, "card": {"first_name": "User2", "last_name": "Sample", "iin": "411111", "last4": "1111", "funding_type": "credit", "expiry_month": 1, "expiry_year": 2025, "billing_addr1": "Test adderess 2", "billing_city": "San Francisco", "billing_state_code": "CA", "billing_state": "California", "billing_country": "US", "billing_zip": "94114", "masked_number": "************1111", "object": "card", "brand": "visa"}, "custom_fields": []}, "emitted_at": 1678971627741} -{"stream":"promotional_credit","data":{"id":"pc_16CR0QTTZPx6wEbXR","customer_id":"Test-Custome-1","type":"decrement","amount":1000,"description":"Applied to the invoice # 39","credit_type":"general","closing_balance":26000,"created_at":1674298041,"object":"promotional_credit","currency_code":"USD","custom_fields":[]},"emitted_at":1676569220310} -{"stream":"promotional_credit","data":{"id":"pc_16CZbuTTZGXtAFrxD","customer_id":"cbdemo_richard","type":"decrement","amount":1000,"description":"Applied to the invoice # 37","credit_type":"general","closing_balance":47000,"created_at":1674295799,"object":"promotional_credit","currency_code":"USD","custom_fields":[]},"emitted_at":1676569220318} -{"stream":"promotional_credit","data":{"id":"pc_AzqD80TTZGFG7TiT6","customer_id":"cbdemo_tyler","type":"decrement","amount":1000,"description":"Applied to the invoice # 36","credit_type":"general","closing_balance":107000,"created_at":1674295727,"object":"promotional_credit","currency_code":"USD","custom_fields":[]},"emitted_at":1676569220325} -{"stream":"gift","data":{"id":"Azz5jBTTJ96eclvRDvCs2SkyRM3cdsflXE5ClcIpcdbOPaa950","status":"unclaimed","scheduled_at":1674057609,"auto_claim":false,"updated_at":1674057613,"resource_version":1674057613941,"object":"gift","no_expiry":true,"gifter":{"customer_id":"Azz5jBTTJ96Mjlv5","invoice_id":"27","signature":"Airbyte","note":"Test gift","object":"gifter"},"gift_receiver":{"customer_id":"Azz5jBTTJ96UqlvE","subscription_id":"Azz5jBTTJ96Y2lvK","first_name":"Test","last_name":"2","email":"integration-tgest@airbyte.io","object":"gift_receiver"},"gift_timelines":[{"status":"unclaimed","occurred_at":1674057613,"object":"gift_timeline"},{"status":"scheduled","occurred_at":1674057604,"object":"gift_timeline"}],"custom_fields":[]},"emitted_at":1676569222624} -{"stream": "coupon", "data": {"id": "TESTCOUPON4", "name": "Test Coupon 4", "invoice_name": "", "discount_type": "percentage", "discount_percentage": 12.0, "duration_type": "one_time", "valid_till": 1680332399, "status": "expired", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1676371290, "updated_at": 1676371290, "resource_version": 1676371290028, "object": "coupon", "redemptions": 1, "custom_fields": []}, "emitted_at": 1678971894181} -{"stream": "coupon", "data": {"id": "TESTCOUPON5", "name": "Test Coupon 5", "invoice_name": "", "discount_type": "fixed_amount", "discount_amount": 300, "duration_type": "forever", "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1676371313, "updated_at": 1676371313, "resource_version": 1676371313572, "object": "coupon", "redemptions": 1, "currency_code": "USD", "custom_fields": []}, "emitted_at": 1678971894193} -{"stream": "coupon", "data": {"id": "TESTCOUPON6", "name": "Test Coupon 6", "invoice_name": "", "discount_type": "fixed_amount", "discount_amount": 500, "duration_type": "forever", "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1676371327, "updated_at": 1676371327, "resource_version": 1676371327854, "object": "coupon", "redemptions": 1, "currency_code": "USD", "custom_fields": []}, "emitted_at": 1678971894207} +{"stream": "promotional_credit", "data": {"id": "pc_16CR0QTTZPx6wEbXR", "customer_id": "Test-Custome-1", "type": "decrement", "amount": 1000, "description": "Applied to the invoice # 39", "credit_type": "general", "closing_balance": 26000, "created_at": 1674298041, "object": "promotional_credit", "currency_code": "USD", "custom_fields": []}, "emitted_at": 1676569220310} +{"stream": "promotional_credit", "data": {"id": "pc_16CZbuTTZGXtAFrxD", "customer_id": "cbdemo_richard", "type": "decrement", "amount": 1000, "description": "Applied to the invoice # 37", "credit_type": "general", "closing_balance": 47000, "created_at": 1674295799, "object": "promotional_credit", "currency_code": "USD", "custom_fields": []}, "emitted_at": 1676569220318} +{"stream": "promotional_credit", "data": {"id": "pc_AzqD80TTZGFG7TiT6", "customer_id": "cbdemo_tyler", "type": "decrement", "amount": 1000, "description": "Applied to the invoice # 36", "credit_type": "general", "closing_balance": 107000, "created_at": 1674295727, "object": "promotional_credit", "currency_code": "USD", "custom_fields": []}, "emitted_at": 1676569220325} {"stream": "transaction", "data": {"id": "txn_AzZTZgTTHbgFlKJ", "customer_id": "cbdemo_tyler", "subscription_id": "cbdemo_non_renewing_sub", "payment_method": "cash", "reference_number": "205000001", "gateway": "not_applicable", "type": "payment", "date": 1674070800, "exchange_rate": 1.0, "amount": 27000, "status": "success", "updated_at": 1674034862, "resource_version": 1674034862389, "deleted": false, "object": "transaction", "currency_code": "USD", "base_currency_code": "USD", "amount_unused": 0, "linked_invoices": [{"invoice_id": "cbdemo_inv_003", "applied_amount": 27000, "applied_at": 1674034862, "invoice_date": 1626053281, "invoice_total": 80000, "invoice_status": "paid"}], "linked_refunds": [], "custom_fields": []}, "emitted_at": 1678972145147} {"stream": "transaction", "data": {"id": "txn_16CQyCTTHdwAAwZq", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "gateway_account_id": "gw_16CKmRSb2oGddH4", "payment_source_id": "pm_AzZlweSefvdgrUy4", "payment_method": "card", "gateway": "chargebee", "type": "payment", "date": 1674035400, "exchange_rate": 1.0, "amount": 50000, "id_at_gateway": "cb_16CQyCTTHdwAKwZr", "status": "failure", "error_code": "3003", "error_text": "Activity limit exceeded", "updated_at": 1674035400, "resource_version": 1674035400229, "deleted": false, "object": "transaction", "masked_card_number": "***********8431", "currency_code": "USD", "base_currency_code": "USD", "amount_unused": 0, "linked_invoices": [{"invoice_id": "23", "applied_amount": 50000, "applied_at": 1674035400, "invoice_date": 1674035390, "invoice_total": 50000, "invoice_status": "paid"}], "linked_refunds": [], "payment_method_details": "{\"card\":{\"first_name\":\"Douglas\",\"last_name\":\"Quaid\",\"iin\":\"371449\",\"last4\":\"8431\",\"funding_type\":\"not_known\",\"expiry_month\":5,\"expiry_year\":2028,\"masked_number\":\"***********8431\",\"object\":\"card\",\"brand\":\"american_express\"}}", "custom_fields": []}, "emitted_at": 1678972145155} {"stream": "transaction", "data": {"id": "txn_16CLzOTTHe3QSDF", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "payment_method": "cash", "reference_number": "113234235", "gateway": "not_applicable", "type": "payment", "date": 1674071372, "exchange_rate": 1.0, "amount": 50000, "status": "success", "updated_at": 1674035428, "resource_version": 1674035428131, "deleted": false, "object": "transaction", "currency_code": "USD", "base_currency_code": "USD", "amount_unused": 0, "linked_invoices": [{"invoice_id": "23", "applied_amount": 50000, "applied_at": 1674035428, "invoice_date": 1674035390, "invoice_total": 50000, "invoice_status": "paid"}], "linked_refunds": [], "custom_fields": []}, "emitted_at": 1678972145163} -{"stream":"quote","data":{"id":"Q20230001","name":"Q1","customer_id":"Test-Custome-1","status":"closed","operation_type":"create_subscription_for_customer","price_type":"tax_exclusive","valid_till":1674979199,"date":1674054723,"total_payable":0,"charge_on_acceptance":0,"sub_total":1000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"version":1,"updated_at":1674979203,"resource_version":1674979203400,"object":"quote","line_items":[{"id":"AzZTZgTTIx14r2aG","date_from":1674054723,"date_to":1674141123,"unit_amount":1000,"quantity":1,"amount":1000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"Test-Custome-1","description":"Test Plan 1","entity_type":"plan_item_price","entity_id":"Test-Plan-1-USD-Daily","entity_description":"Test","metered": false,"discount_amount":1000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":1000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIx14r2aG","discount_type":"promotional_credits","discount_amount":1000}],"taxes":[],"line_item_taxes":[],"currency_code":"USD","billing_address":{"first_name":"Sample Name Two","last_name":"Sample Lastname 2","email":"name2@example.com","company":"Test Company Org 2","phone":"+1 388 846 3888","line1":"Ms Ninette Franck","line2":"4381","city":"San Francisco","state_code":"CA","state":"California","country":"US","zip":"94114","validation_status":"not_validated","object":"billing_address"},"shipping_address":{"first_name":"Sample Name Two","last_name":"Sample Lastname 2","email":"name2@example.com","company":"Test Company Org 2","phone":"+1 388 846 3888","line1":"Ms Ninette Franck","line2":"4381","city":"San Francisco","state_code":"CA","state":"California","country":"US","zip":"94114","validation_status":"not_validated","object":"shipping_address"},"custom_fields":[]},"emitted_at":1676569246807} -{"stream":"quote","data":{"id":"Q20230002","name":"Q2","customer_id":"cbdemo_richard","status":"closed","operation_type":"onetime_invoice","price_type":"tax_exclusive","valid_till":1674979199,"date":1674054772,"total_payable":0,"charge_on_acceptance":0,"sub_total":50000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"version":1,"updated_at":1674979203,"resource_version":1674979203437,"object":"quote","line_items":[{"id":"AzZTZgTTIxDoN2ar","date_from":1674054772,"date_to":1674227572,"unit_amount":50000,"quantity":1,"amount":50000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"cbdemo_richard","description":"Implementation Charge","entity_type":"charge_item_price","entity_id":"cbdemo_implementation-charge-USD","metered": false,"discount_amount":50000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":50000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIxDoN2ar","discount_type":"promotional_credits","discount_amount":50000}],"taxes":[],"line_item_taxes":[],"currency_code":"USD","billing_address":{"first_name":"Richard","last_name":"Hendricks","company":"Zencorporation","validation_status":"not_validated","object":"billing_address"},"shipping_address":{"validation_status":"not_validated","object":"shipping_address"},"custom_fields":[]},"emitted_at":1676569246817} -{"stream":"quote","data":{"id":"Q20230003","name":"Q3","customer_id":"cbdemo_tyler","status":"closed","operation_type":"onetime_invoice","price_type":"tax_exclusive","valid_till":1674979199,"date":1674054823,"total_payable":0,"charge_on_acceptance":0,"sub_total":50000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"version":1,"updated_at":1674979203,"resource_version":1674979203581,"object":"quote","line_items":[{"id":"AzZTZgTTIxQzS2bH","date_from":1674054823,"date_to":1674227623,"unit_amount":50000,"quantity":1,"amount":50000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"cbdemo_tyler","description":"Setup Charge","entity_type":"charge_item_price","entity_id":"cbdemo_setup-charge-USD","metered": false,"discount_amount":50000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":50000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIxQzS2bH","discount_type":"promotional_credits","discount_amount":50000}],"taxes":[],"line_item_taxes":[],"currency_code":"USD","billing_address":{"first_name":"Tyler","last_name":"Durden","company":"Iselectrics","validation_status":"not_validated","object":"billing_address"},"shipping_address":{"validation_status":"not_validated","object":"shipping_address"},"custom_fields":[]},"emitted_at":1676569246824} -{"stream":"quote_line_group","data":{"version":1,"id":"qlg_AzZTZgTTIx14p2aF","sub_total":1000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"charge_event":"subscription_renewal","billing_cycle_number":1,"object":"quote_line_group","line_items":[{"id":"AzZTZgTTIx14r2aG","date_from":1674054723,"date_to":1674141123,"unit_amount":1000,"quantity":1,"amount":1000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"Test-Custome-1","description":"Test Plan 1","entity_type":"plan_item_price","entity_id":"Test-Plan-1-USD-Daily","entity_description":"Test","metered": false,"discount_amount":1000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":1000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIx14r2aG","discount_type":"promotional_credits","discount_amount":1000}],"taxes":[],"line_item_taxes":[],"custom_fields":[]},"emitted_at":1676569251063} -{"stream":"quote_line_group","data":{"version":1,"id":"qlg_AzZTZgTTIxDoL2aq","sub_total":50000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"charge_event":"immediate","object":"quote_line_group","line_items":[{"id":"AzZTZgTTIxDoN2ar","date_from":1674054772,"date_to":1674227572,"unit_amount":50000,"quantity":1,"amount":50000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"cbdemo_richard","description":"Implementation Charge","entity_type":"charge_item_price","entity_id":"cbdemo_implementation-charge-USD","metered": false,"discount_amount":50000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":50000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIxDoN2ar","discount_type":"promotional_credits","discount_amount":50000}],"taxes":[],"line_item_taxes":[],"custom_fields":[]},"emitted_at":1676569251257} -{"stream":"quote_line_group","data":{"version":1,"id":"qlg_AzZTZgTTIxQzR2bG","sub_total":50000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"charge_event":"immediate","object":"quote_line_group","line_items":[{"id":"AzZTZgTTIxQzS2bH","date_from":1674054823,"date_to":1674227623,"unit_amount":50000,"quantity":1,"amount":50000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"cbdemo_tyler","description":"Setup Charge","entity_type":"charge_item_price","entity_id":"cbdemo_setup-charge-USD","metered": false,"discount_amount":50000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":50000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIxQzS2bH","discount_type":"promotional_credits","discount_amount":50000}],"taxes":[],"line_item_taxes":[],"custom_fields":[]},"emitted_at":1676569251413} -{"stream": "subscription", "data": {"id": "cbdemo_cancelled_sub", "billing_period": 1, "billing_period_unit": "month", "auto_collection": "on", "customer_id": "cbdemo_carol", "status": "cancelled", "created_at": 1627671478, "started_at": 1624325278, "cancelled_at": 1626917278, "created_from_ip": "176.37.67.33", "updated_at": 1678806943, "has_scheduled_changes": false, "resource_version": 1678806943288, "deleted": false, "object": "subscription", "currency_code": "USD", "subscription_items": [{"item_price_id": "cbdemo_basic-USD-monthly", "item_type": "plan", "quantity": 1, "unit_price": 40000, "amount": 40000, "free_quantity": 0, "object": "subscription_item"}], "due_invoices_count": 0, "mrr": 0, "has_scheduled_advance_invoices": false, "auto_close_invoices": true, "channel": "web", "custom_fields": []}, "emitted_at": 1703096645549} -{"stream": "subscription", "data": {"id": "cbdemo_non_renewing_sub", "billing_period": 1, "billing_period_unit": "month", "auto_collection": "on", "customer_id": "cbdemo_tyler", "status": "cancelled", "current_term_start": 1626053278, "current_term_end": 1628731678, "created_at": 1627671479, "started_at": 1623461278, "activated_at": 1623461278, "cancelled_at": 1628731678, "created_from_ip": "176.37.67.33", "updated_at": 1678806943, "has_scheduled_changes": false, "cancel_schedule_created_at": 1627671479, "resource_version": 1678806943307, "deleted": false, "object": "subscription", "currency_code": "USD", "subscription_items": [{"item_price_id": "cbdemo_intermediary-USD-monthly", "item_type": "plan", "quantity": 1, "unit_price": 60000, "amount": 60000, "free_quantity": 0, "object": "subscription_item"}, {"item_price_id": "cbdemo_additional-analytics-USD-monthly", "item_type": "addon", "quantity": 1, "unit_price": 20000, "amount": 20000, "object": "subscription_item"}], "charged_items": [{"item_price_id": "cbdemo_setup-charge-USD", "last_charged_at": 1600153200, "object": "charged_item"}], "due_invoices_count": 0, "mrr": 0, "has_scheduled_advance_invoices": false, "auto_close_invoices": true, "channel": "web", "custom_fields": []}, "emitted_at": 1703096645556} -{"stream": "subscription", "data": {"id": "AzZTZgTTHdIU1NP", "billing_period": 1, "billing_period_unit": "month", "po_number": "0000002", "auto_collection": "on", "customer_id": "cbdemo_douglas", "status": "cancelled", "current_term_start": 1674035247, "current_term_end": 1676713649, "created_at": 1674035247, "started_at": 1674035247, "activated_at": 1674035247, "cancelled_at": 1676713649, "updated_at": 1678806943, "has_scheduled_changes": false, "cancel_schedule_created_at": 1674035247, "channel": "web", "resource_version": 1678806943363, "deleted": false, "object": "subscription", "currency_code": "USD", "subscription_items": [{"item_price_id": "cbdemo_advanced-USD-monthly", "item_type": "plan", "quantity": 1, "unit_price": 75000, "amount": 0, "free_quantity": 3, "object": "subscription_item"}, {"item_price_id": "cbdemo_additional-users-USD-monthly", "item_type": "addon", "quantity": 1, "unit_price": 50000, "amount": 50000, "object": "subscription_item"}, {"item_price_id": "cbdemo_setup-charge-USD", "item_type": "charge", "quantity": 1, "unit_price": 50000, "amount": 50000, "charge_on_event": "subscription_trial_start", "charge_once": false, "object": "subscription_item"}], "item_tiers": [{"item_price_id": "cbdemo_additional-users-USD-monthly", "starting_unit": 1, "ending_unit": 10, "price": 50000, "object": "item_tier"}, {"item_price_id": "cbdemo_additional-users-USD-monthly", "starting_unit": 11, "price": 100000, "object": "item_tier"}], "due_invoices_count": 0, "mrr": 0, "cf_my_custom_checkbox_field": "False", "has_scheduled_advance_invoices": false, "auto_close_invoices": true, "custom_fields": [{"name": "cf_my_custom_checkbox_field", "value": "False"}]}, "emitted_at": 1703096645562} -{"stream": "customer", "data": {"id": "Customer-5", "first_name": "Sample Name Five", "last_name": "Sample Lastname 5", "email": "name5@example.com", "phone": "+1 388 833 5555", "company": "Test Company Org 5", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1674055210, "taxability": "taxable", "updated_at": 1678987385, "pii_cleared": "active", "channel": "web", "resource_version": 1678987385441, "deleted": false, "object": "customer", "card_status": "no_card", "promotional_credits": 0, "refundable_credits": 0, "excess_payments": 0, "unbilled_charges": 0, "preferred_currency_code": "USD", "mrr": 0, "tax_providers_fields": [], "auto_close_invoices": true, "custom_fields": []}, "emitted_at": 1703113529371} -{"stream": "customer", "data": {"id": "Test-Custome-1", "first_name": "Sample Name 2", "last_name": "Sample Lastname 2", "email": "name2@example.com", "phone": "+1 382 333 3883", "company": "Test Customer Org", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1674038786, "taxability": "taxable", "updated_at": 1678987385, "locale": "en", "pii_cleared": "active", "channel": "web", "resource_version": 1678987385448, "deleted": false, "object": "customer", "billing_address": {"first_name": "Sample Name Two", "last_name": "Sample Lastname 2", "email": "name2@example.com", "company": "Test Company Org 2", "phone": "+1 388 846 3888", "line1": "Ms Ninette Franck", "line2": "4381", "city": "San Francisco", "state_code": "CA", "state": "California", "country": "US", "zip": "94114", "validation_status": "not_validated", "object": "billing_address"}, "card_status": "no_card", "contacts": [{"id": "Test Contact 2", "first_name": "Sample Name Two", "last_name": "Sample Lastname 2", "email": "name2@example.com", "phone": "+13888433888", "enabled": true, "send_account_email": false, "send_billing_email": false, "object": "contact"}, {"id": "Test Contact 3", "first_name": "Sample Name Three", "last_name": "Sample Lastname 3", "email": "name2@example.com", "phone": "+13888434888", "enabled": true, "send_account_email": false, "send_billing_email": false, "object": "contact"}, {"id": "Test Contact 4", "first_name": "Sample Name Four", "last_name": "Sample Lastname 4", "email": "name4@example.com", "phone": "+13888333888", "enabled": true, "send_account_email": false, "send_billing_email": false, "object": "contact"}], "balances": [{"promotional_credits": 120, "excess_payments": 0, "refundable_credits": 0, "unbilled_charges": 0, "object": "customer_balance", "currency_code": "USD", "balance_currency_code": "USD"}], "promotional_credits": 120, "refundable_credits": 0, "excess_payments": 0, "unbilled_charges": 0, "preferred_currency_code": "USD", "mrr": 0, "tax_providers_fields": [], "auto_close_invoices": true, "custom_fields": []}, "emitted_at": 1703113529374} -{"stream": "customer", "data": {"id": "cbdemo_simon", "first_name": "Simon", "last_name": "Masrani", "email": "simon_AT_test.com@example.com", "phone": "2909447832", "company": "Openlane Ltd", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1627671474, "created_from_ip": "176.37.67.33", "taxability": "taxable", "updated_at": 1678987385, "pii_cleared": "active", "channel": "web", "resource_version": 1678987385451, "deleted": false, "object": "customer", "card_status": "valid", "promotional_credits": 0, "refundable_credits": 0, "excess_payments": 0, "unbilled_charges": 0, "preferred_currency_code": "USD", "mrr": 0, "primary_payment_source_id": "pm_AzZlweSefvdeFUxy", "payment_method": {"object": "payment_method", "type": "card", "reference_id": "tok_AzZlweSefvde2Uxx", "gateway": "chargebee", "gateway_account_id": "gw_16CKmRSb2oGddH4", "status": "valid"}, "tax_providers_fields": [], "auto_close_invoices": true, "custom_fields": []}, "emitted_at": 1703113529377} +{"stream": "quote", "data": {"id": "Q20230001", "name": "Q1", "customer_id": "Test-Custome-1", "status": "closed", "operation_type": "create_subscription_for_customer", "price_type": "tax_exclusive", "valid_till": 1674979199, "date": 1674054723, "total_payable": 0, "charge_on_acceptance": 0, "sub_total": 1000, "total": 0, "credits_applied": 0, "amount_paid": 0, "amount_due": 0, "version": 1, "updated_at": 1674979203, "resource_version": 1674979203400, "object": "quote", "line_items": [{"id": "AzZTZgTTIx14r2aG", "date_from": 1674054723, "date_to": 1674141123, "unit_amount": 1000, "quantity": 1, "amount": 1000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "customer_id": "Test-Custome-1", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "metered": false, "discount_amount": 1000, "item_level_discount_amount": 0}], "discounts": [{"object": "discount", "entity_type": "promotional_credits", "description": "Promotional Credits", "amount": 1000}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "AzZTZgTTIx14r2aG", "discount_type": "promotional_credits", "discount_amount": 1000}], "taxes": [], "line_item_taxes": [], "currency_code": "USD", "billing_address": {"first_name": "Sample Name Two", "last_name": "Sample Lastname 2", "email": "name2@example.com", "company": "Test Company Org 2", "phone": "+1 388 846 3888", "line1": "Ms Ninette Franck", "line2": "4381", "city": "San Francisco", "state_code": "CA", "state": "California", "country": "US", "zip": "94114", "validation_status": "not_validated", "object": "billing_address"}, "shipping_address": {"first_name": "Sample Name Two", "last_name": "Sample Lastname 2", "email": "name2@example.com", "company": "Test Company Org 2", "phone": "+1 388 846 3888", "line1": "Ms Ninette Franck", "line2": "4381", "city": "San Francisco", "state_code": "CA", "state": "California", "country": "US", "zip": "94114", "validation_status": "not_validated", "object": "shipping_address"}, "custom_fields": []}, "emitted_at": 1676569246807} +{"stream": "quote", "data": {"id": "Q20230002", "name": "Q2", "customer_id": "cbdemo_richard", "status": "closed", "operation_type": "onetime_invoice", "price_type": "tax_exclusive", "valid_till": 1674979199, "date": 1674054772, "total_payable": 0, "charge_on_acceptance": 0, "sub_total": 50000, "total": 0, "credits_applied": 0, "amount_paid": 0, "amount_due": 0, "version": 1, "updated_at": 1674979203, "resource_version": 1674979203437, "object": "quote", "line_items": [{"id": "AzZTZgTTIxDoN2ar", "date_from": 1674054772, "date_to": 1674227572, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "customer_id": "cbdemo_richard", "description": "Implementation Charge", "entity_type": "charge_item_price", "entity_id": "cbdemo_implementation-charge-USD", "metered": false, "discount_amount": 50000, "item_level_discount_amount": 0}], "discounts": [{"object": "discount", "entity_type": "promotional_credits", "description": "Promotional Credits", "amount": 50000}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "AzZTZgTTIxDoN2ar", "discount_type": "promotional_credits", "discount_amount": 50000}], "taxes": [], "line_item_taxes": [], "currency_code": "USD", "billing_address": {"first_name": "Richard", "last_name": "Hendricks", "company": "Zencorporation", "validation_status": "not_validated", "object": "billing_address"}, "shipping_address": {"validation_status": "not_validated", "object": "shipping_address"}, "custom_fields": []}, "emitted_at": 1676569246817} +{"stream": "quote", "data": {"id": "Q20230003", "name": "Q3", "customer_id": "cbdemo_tyler", "status": "closed", "operation_type": "onetime_invoice", "price_type": "tax_exclusive", "valid_till": 1674979199, "date": 1674054823, "total_payable": 0, "charge_on_acceptance": 0, "sub_total": 50000, "total": 0, "credits_applied": 0, "amount_paid": 0, "amount_due": 0, "version": 1, "updated_at": 1674979203, "resource_version": 1674979203581, "object": "quote", "line_items": [{"id": "AzZTZgTTIxQzS2bH", "date_from": 1674054823, "date_to": 1674227623, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "customer_id": "cbdemo_tyler", "description": "Setup Charge", "entity_type": "charge_item_price", "entity_id": "cbdemo_setup-charge-USD", "metered": false, "discount_amount": 50000, "item_level_discount_amount": 0}], "discounts": [{"object": "discount", "entity_type": "promotional_credits", "description": "Promotional Credits", "amount": 50000}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "AzZTZgTTIxQzS2bH", "discount_type": "promotional_credits", "discount_amount": 50000}], "taxes": [], "line_item_taxes": [], "currency_code": "USD", "billing_address": {"first_name": "Tyler", "last_name": "Durden", "company": "Iselectrics", "validation_status": "not_validated", "object": "billing_address"}, "shipping_address": {"validation_status": "not_validated", "object": "shipping_address"}, "custom_fields": []}, "emitted_at": 1676569246824} +{"stream": "quote_line_group", "data": {"version": 1, "id": "qlg_AzZTZgTTIx14p2aF", "sub_total": 1000, "total": 0, "credits_applied": 0, "amount_paid": 0, "amount_due": 0, "charge_event": "subscription_renewal", "billing_cycle_number": 1, "object": "quote_line_group", "line_items": [{"id": "AzZTZgTTIx14r2aG", "date_from": 1674054723, "date_to": 1674141123, "unit_amount": 1000, "quantity": 1, "amount": 1000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "customer_id": "Test-Custome-1", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "metered": false, "discount_amount": 1000, "item_level_discount_amount": 0}], "discounts": [{"object": "discount", "entity_type": "promotional_credits", "description": "Promotional Credits", "amount": 1000}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "AzZTZgTTIx14r2aG", "discount_type": "promotional_credits", "discount_amount": 1000}], "taxes": [], "line_item_taxes": [], "quote_id": "Q20230001", "custom_fields": []}, "emitted_at": 1706028674052} +{"stream": "quote_line_group", "data": {"version": 1, "id": "qlg_AzZTZgTTIxDoL2aq", "sub_total": 50000, "total": 0, "credits_applied": 0, "amount_paid": 0, "amount_due": 0, "charge_event": "immediate", "object": "quote_line_group", "line_items": [{"id": "AzZTZgTTIxDoN2ar", "date_from": 1674054772, "date_to": 1674227572, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "customer_id": "cbdemo_richard", "description": "Implementation Charge", "entity_type": "charge_item_price", "entity_id": "cbdemo_implementation-charge-USD", "metered": false, "discount_amount": 50000, "item_level_discount_amount": 0}], "discounts": [{"object": "discount", "entity_type": "promotional_credits", "description": "Promotional Credits", "amount": 50000}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "AzZTZgTTIxDoN2ar", "discount_type": "promotional_credits", "discount_amount": 50000}], "taxes": [], "line_item_taxes": [], "quote_id": "Q20230002", "custom_fields": []}, "emitted_at": 1706028674176} +{"stream": "quote_line_group", "data": {"version": 1, "id": "qlg_AzZTZgTTIxQzR2bG", "sub_total": 50000, "total": 0, "credits_applied": 0, "amount_paid": 0, "amount_due": 0, "charge_event": "immediate", "object": "quote_line_group", "line_items": [{"id": "AzZTZgTTIxQzS2bH", "date_from": 1674054823, "date_to": 1674227623, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "customer_id": "cbdemo_tyler", "description": "Setup Charge", "entity_type": "charge_item_price", "entity_id": "cbdemo_setup-charge-USD", "metered": false, "discount_amount": 50000, "item_level_discount_amount": 0}], "discounts": [{"object": "discount", "entity_type": "promotional_credits", "description": "Promotional Credits", "amount": 50000}], "line_item_discounts": [{"object": "line_item_discount", "line_item_id": "AzZTZgTTIxQzS2bH", "discount_type": "promotional_credits", "discount_amount": 50000}], "taxes": [], "line_item_taxes": [], "quote_id": "Q20230003", "custom_fields": []}, "emitted_at": 1706028674305} {"stream": "invoice", "data": {"id": "cbdemo_inv_003", "customer_id": "cbdemo_tyler", "subscription_id": "cbdemo_non_renewing_sub", "recurring": true, "status": "paid", "price_type": "tax_exclusive", "date": 1626053281, "due_date": 1626053281, "net_term_days": 0, "exchange_rate": 1.0, "total": 80000, "amount_paid": 77000, "amount_adjusted": 3000, "write_off_amount": 0, "credits_applied": 0, "amount_due": 0, "paid_at": 1674070800, "updated_at": 1674034862, "resource_version": 1674034862390, "deleted": false, "object": "invoice", "first_invoice": true, "amount_to_collect": 0, "round_off_amount": 0, "new_sales_amount": 80000, "has_advance_charges": false, "currency_code": "USD", "base_currency_code": "USD", "generated_at": 1626053281, "is_gifted": false, "term_finalized": true, "channel": "web", "tax": 0, "line_items": [{"id": "li_AzZlweSefvesUUyx", "date_from": 1626053281, "date_to": 1628731680, "unit_amount": 60000, "quantity": 1, "amount": 60000, "pricing_model": "per_unit", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "cbdemo_non_renewing_sub", "customer_id": "cbdemo_tyler", "description": "Intermediary - Monthly Plan", "entity_type": "plan_item_price", "entity_id": "cbdemo_intermediary-USD-monthly", "entity_description": "Intermediary Monthly Plan USD", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}, {"id": "li_AzZlweSefvesZUyy", "date_from": 1626053281, "date_to": 1628731680, "unit_amount": 20000, "quantity": 1, "amount": 20000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "cbdemo_non_renewing_sub", "customer_id": "cbdemo_tyler", "description": "Additional Analytics - Monthly Addon", "entity_type": "addon_item_price", "entity_id": "cbdemo_additional-analytics-USD-monthly", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "sub_total": 80000, "linked_payments": [{"txn_id": "txn_AzZlweSefvetOUyz", "applied_amount": 50000, "applied_at": 1626053281, "txn_status": "success", "txn_date": 1626053281, "txn_amount": 50000}, {"txn_id": "txn_AzZTZgTTHbgFlKJ", "applied_amount": 27000, "applied_at": 1674034862, "txn_status": "success", "txn_date": 1674070800, "txn_amount": 27000}], "applied_credits": [], "adjustment_credit_notes": [{"cn_id": "TEST-CN-4", "cn_reason_code": "waiver", "cn_create_reason_code": "Waiver", "cn_date": 1626917282, "cn_total": 3000, "cn_status": "adjusted"}], "issued_credit_notes": [], "linked_orders": [], "dunning_attempts": [], "billing_address": {"first_name": "Tyler", "last_name": "Durden", "company": "Iselectrics", "validation_status": "not_validated", "object": "billing_address"}, "custom_fields": []}, "emitted_at": 1703114360732} {"stream": "invoice", "data": {"id": "23", "po_number": "0000002", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "recurring": true, "status": "paid", "price_type": "tax_exclusive", "date": 1674035390, "due_date": 1674035390, "net_term_days": 0, "exchange_rate": 1.0, "total": 50000, "amount_paid": 50000, "amount_adjusted": 0, "write_off_amount": 0, "credits_applied": 0, "amount_due": 0, "paid_at": 1674071372, "dunning_status": "stopped", "updated_at": 1674035428, "resource_version": 1674035428134, "deleted": false, "object": "invoice", "first_invoice": true, "amount_to_collect": 0, "round_off_amount": 0, "new_sales_amount": 50000, "has_advance_charges": false, "currency_code": "USD", "base_currency_code": "USD", "generated_at": 1674035390, "is_gifted": false, "term_finalized": true, "channel": "web", "tax": 0, "line_items": [{"id": "li_AzZTZgTTHdIUcNR", "date_from": 1674035247, "date_to": 1676713647, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "tiered", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "AzZTZgTTHdIU1NP", "customer_id": "cbdemo_douglas", "description": "Additional Users - Monthly Addon", "entity_type": "addon_item_price", "entity_id": "cbdemo_additional-users-USD-monthly", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "line_item_tiers": [{"starting_unit": 1, "ending_unit": 10, "quantity_used": 1, "unit_amount": 50000, "object": "line_item_tier", "line_item_id": "li_AzZTZgTTHdIUcNR"}], "sub_total": 50000, "linked_payments": [{"txn_id": "txn_16CQyCTTHdwAAwZq", "applied_amount": 50000, "applied_at": 1674035400, "txn_status": "failure", "txn_date": 1674035400, "txn_amount": 50000}, {"txn_id": "txn_16CLzOTTHe3QSDF", "applied_amount": 50000, "applied_at": 1674035428, "txn_status": "success", "txn_date": 1674071372, "txn_amount": 50000}], "applied_credits": [], "adjustment_credit_notes": [], "issued_credit_notes": [], "linked_orders": [], "dunning_attempts": [{"created_at": 1674035400, "attempt": 0, "dunning_type": "auto_collect", "transaction_id": "txn_16CQyCTTHdwAAwZq", "txn_status": "failure", "txn_amount": 50000}], "billing_address": {"first_name": "Douglas", "last_name": "Quaid", "company": "Greenplus Enterprises", "validation_status": "not_validated", "object": "billing_address"}, "custom_fields": []}, "emitted_at": 1703114360741} {"stream": "invoice", "data": {"id": "24", "po_number": "0000003", "customer_id": "cbdemo_tyler", "subscription_id": "6olOsTTHieWUY9", "recurring": true, "status": "paid", "price_type": "tax_exclusive", "date": 1674036523, "due_date": 1674036523, "net_term_days": 0, "exchange_rate": 1.0, "total": 51000, "amount_paid": 51000, "amount_adjusted": 0, "write_off_amount": 0, "credits_applied": 0, "amount_due": 0, "paid_at": 1674036524, "updated_at": 1674036524, "resource_version": 1674036524204, "deleted": false, "object": "invoice", "first_invoice": true, "amount_to_collect": 0, "round_off_amount": 0, "new_sales_amount": 51000, "has_advance_charges": false, "currency_code": "USD", "base_currency_code": "USD", "generated_at": 1674036523, "is_gifted": false, "term_finalized": true, "channel": "web", "tax": 0, "line_items": [{"id": "li_6olOsTTHieX6YB", "date_from": 1674036523, "date_to": 1674122923, "unit_amount": 1000, "quantity": 1, "amount": 1000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "6olOsTTHieWUY9", "customer_id": "cbdemo_tyler", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}, {"id": "li_6olOsTTHieXBYC", "date_from": 1674036523, "date_to": 1674900523, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "6olOsTTHieWUY9", "customer_id": "cbdemo_tyler", "description": "Setup Charge", "entity_type": "charge_item_price", "entity_id": "cbdemo_setup-charge-USD", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "sub_total": 51000, "linked_payments": [{"txn_id": "txn_6olOsTTHieYGYD", "applied_amount": 51000, "applied_at": 1674036524, "txn_status": "success", "txn_date": 1674036524, "txn_amount": 51000}], "applied_credits": [], "adjustment_credit_notes": [], "issued_credit_notes": [], "linked_orders": [{"id": "1", "status": "queued", "created_at": 1674036525}], "dunning_attempts": [], "billing_address": {"first_name": "Tyler", "last_name": "Durden", "company": "Iselectrics", "validation_status": "not_validated", "object": "billing_address"}, "notes": [{"note": "Test", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily"}], "custom_fields": []}, "emitted_at": 1703114360749} {"stream": "credit_note", "data": {"id": "TEST-CN-5", "customer_id": "cbdemo_simon", "subscription_id": "cbdemo_future_sub", "reference_invoice_id": "19", "type": "refundable", "reason_code": "product_unsatisfactory", "status": "refunded", "date": 1674033113, "price_type": "tax_exclusive", "exchange_rate": 1.0, "total": 80000, "amount_allocated": 80000, "amount_refunded": 0, "amount_available": 0, "refunded_at": 1674872880, "generated_at": 1674033113, "updated_at": 1674872880, "channel": "web", "resource_version": 1674872880610, "deleted": false, "object": "credit_note", "create_reason_code": "Product Unsatisfactory", "currency_code": "USD", "round_off_amount": 0, "fractional_correction": 0, "base_currency_code": "USD", "sub_total": 80000, "line_items": [{"id": "li_16CM7mTTHULEa1hh", "date_from": 1674069063, "date_to": 1674069063, "unit_amount": 50000, "quantity": 1, "amount": 50000, "pricing_model": "per_unit", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "cbdemo_future_sub", "customer_id": "cbdemo_simon", "description": "Lite - Monthly Plan", "entity_type": "plan_item_price", "entity_id": "cbdemo_lite-USD-monthly", "entity_description": "Lite Monthly Plan USD", "reference_line_item_id": "li_16CZgbTIgigQV7CGu", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}, {"id": "li_16CM7mTTHULEe1hi", "date_from": 1674069063, "date_to": 1674069063, "unit_amount": 30000, "quantity": 1, "amount": 30000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "cbdemo_future_sub", "customer_id": "cbdemo_simon", "description": "Concierge Support - Monthly Addon", "entity_type": "addon_item_price", "entity_id": "cbdemo_concierge-support-USD-monthly", "reference_line_item_id": "li_16CZgbTIgigQj7CGv", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "taxes": [], "line_item_taxes": [], "line_item_discounts": [], "linked_refunds": [], "allocations": [{"allocated_amount": 20300, "allocated_at": 1674872880, "invoice_id": "64", "invoice_date": 1674872877, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674815049, "invoice_id": "62", "invoice_date": 1674815048, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674728652, "invoice_id": "58", "invoice_date": 1674728648, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674642252, "invoice_id": "54", "invoice_date": 1674642248, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674555851, "invoice_id": "50", "invoice_date": 1674555848, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674469451, "invoice_id": "46", "invoice_date": 1674469448, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674383053, "invoice_id": "42", "invoice_date": 1674383048, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674296651, "invoice_id": "38", "invoice_date": 1674296648, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674210252, "invoice_id": "34", "invoice_date": 1674210248, "invoice_status": "paid"}, {"allocated_amount": 1000, "allocated_at": 1674123850, "invoice_id": "30", "invoice_date": 1674123848, "invoice_status": "paid"}, {"allocated_amount": 50700, "allocated_at": 1674037448, "invoice_id": "26", "invoice_date": 1674037448, "invoice_status": "paid"}], "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "customer_notes": "", "custom_fields": []}, "emitted_at": 1703612727121} {"stream": "credit_note", "data": {"id": "TEST-CN-6", "customer_id": "cbdemo_simon", "subscription_id": "AzZTZgTTHmX8Gc1", "reference_invoice_id": "128", "type": "refundable", "reason_code": "product_unsatisfactory", "status": "refunded", "date": 1676371612, "price_type": "tax_exclusive", "exchange_rate": 1.0, "total": 200, "amount_allocated": 200, "amount_refunded": 0, "amount_available": 0, "refunded_at": 1676456650, "generated_at": 1676371612, "updated_at": 1676456650, "channel": "web", "resource_version": 1676456650511, "deleted": false, "object": "credit_note", "create_reason_code": "Product Unsatisfactory", "currency_code": "USD", "round_off_amount": 0, "fractional_correction": 0, "base_currency_code": "USD", "sub_total": 200, "line_items": [{"id": "li_16CM0pTVpkRhZ29v", "date_from": 1676371612, "date_to": 1676371612, "unit_amount": 200, "quantity": 1, "amount": 200, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "AzZTZgTTHmX8Gc1", "customer_id": "cbdemo_simon", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "reference_line_item_id": "li_16CR6XTVdxgpUH1gi", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "taxes": [], "line_item_taxes": [], "line_item_discounts": [], "linked_refunds": [], "allocations": [{"allocated_amount": 200, "allocated_at": 1676456650, "invoice_id": "140", "invoice_date": 1676456648, "invoice_status": "paid"}], "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "customer_notes": "", "custom_fields": []}, "emitted_at": 1703612727285} {"stream": "credit_note", "data": {"id": "TEST-CN-7", "customer_id": "cbdemo_simon", "subscription_id": "AzZTZgTTHmX8Gc1", "reference_invoice_id": "128", "type": "refundable", "reason_code": "product_unsatisfactory", "status": "refunded", "date": 1676371655, "price_type": "tax_exclusive", "exchange_rate": 1.0, "total": 100, "amount_allocated": 100, "amount_refunded": 0, "amount_available": 0, "refunded_at": 1676456650, "generated_at": 1676371655, "updated_at": 1676456650, "channel": "web", "resource_version": 1676456650518, "deleted": false, "object": "credit_note", "create_reason_code": "Product Unsatisfactory", "currency_code": "USD", "round_off_amount": 0, "fractional_correction": 0, "base_currency_code": "USD", "sub_total": 100, "line_items": [{"id": "li_AzZTODTVpkcu827U", "date_from": 1676371655, "date_to": 1676371655, "unit_amount": 100, "quantity": 1, "amount": 100, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "AzZTZgTTHmX8Gc1", "customer_id": "cbdemo_simon", "description": "Test Plan 1", "entity_type": "plan_item_price", "entity_id": "Test-Plan-1-USD-Daily", "entity_description": "Test", "reference_line_item_id": "li_16CR6XTVdxgpUH1gi", "metered": false, "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0}], "taxes": [], "line_item_taxes": [], "line_item_discounts": [], "linked_refunds": [], "allocations": [{"allocated_amount": 100, "allocated_at": 1676456650, "invoice_id": "140", "invoice_date": 1676456648, "invoice_status": "paid"}], "billing_address": {"first_name": "Simon", "last_name": "Masrani", "company": "Openlane Ltd", "validation_status": "not_validated", "object": "billing_address"}, "customer_notes": "", "custom_fields": []}, "emitted_at": 1703612727293} -{"stream":"comment","data":{"id":"cmt_16CM7mTTHULGY1hj","entity_type":"credit_note","entity_id":"TEST-CN-5","notes":"Test","added_by":"integration-test@airbyte.io","created_at":1674033113,"type":"user","object":"comment","custom_fields":[]},"emitted_at":1703800968922} -{"stream":"comment","data":{"id":"cmt_AzZTZgTTHaxTnJV","entity_type":"subscription","entity_id":"cbdemo_trial_sub","notes":"Test PO 0000001","added_by":"integration-test@airbyte.io","created_at":1674034690,"type":"user","object":"comment","custom_fields":[]},"emitted_at":1703800968925} -{"stream":"comment","data":{"id":"cmt_AzZTZgTTHbgGdKK","entity_type":"transaction","entity_id":"txn_AzZTZgTTHbgFlKJ","notes":"Test cash payment","added_by":"integration-test@airbyte.io","created_at":1674034862,"type":"user","object":"comment","custom_fields":[]},"emitted_at":1703800968928} -{"stream":"item_family","data":{"id":"cbdemo_pf_analytics","name":"Analytics","description":"Reporting and analytics for your business.","status":"active","resource_version":1627671463249,"updated_at":1627671463,"object":"item_family","custom_fields":[]},"emitted_at":1703880848793} -{"stream":"item_family","data":{"id":"cbdemo_pf_crm","name":"CRM","description":"Turn your leads into paying customers.","status":"active","resource_version":1627671463158,"updated_at":1627671463,"object":"item_family","custom_fields":[]},"emitted_at":1703880848797} -{"stream":"differential_price","data":{"id":"7748afa6-fdbe-4304-ac23-d18a17f27715","item_price_id":"cbdemo_additional-analytics-USD-yearly","parent_item_id":"cbdemo_advanced","price":200000,"status":"active","resource_version":1674032542218,"updated_at":1674032542,"created_at":1674032542,"currency_code":"USD","object":"differential_price","custom_fields":[]},"emitted_at":1704223399378} -{"stream":"differential_price","data":{"id":"7748afa6-fdbe-4304-ac23-d18a17f27715","item_price_id":"cbdemo_additional-analytics-USD-yearly","parent_item_id":"cbdemo_advanced","price":200000,"status":"active","resource_version":1674032542218,"updated_at":1674032542,"created_at":1674032542,"currency_code":"USD","object":"differential_price","custom_fields":[]},"emitted_at":1704223399498} -{"stream":"differential_price","data":{"id":"7748afa6-fdbe-4304-ac23-d18a17f27715","item_price_id":"cbdemo_additional-analytics-USD-yearly","parent_item_id":"cbdemo_advanced","price":200000,"status":"active","resource_version":1674032542218,"updated_at":1674032542,"created_at":1674032542,"currency_code":"USD","object":"differential_price","custom_fields":[]},"emitted_at":1704223399634} +{"stream": "comment", "data": {"id": "cmt_16CM7mTTHULGY1hj", "entity_type": "credit_note", "entity_id": "TEST-CN-5", "notes": "Test", "added_by": "integration-test@airbyte.io", "created_at": 1674033113, "type": "user", "object": "comment", "custom_fields": []}, "emitted_at": 1703800968922} +{"stream": "comment", "data": {"id": "cmt_AzZTZgTTHaxTnJV", "entity_type": "subscription", "entity_id": "cbdemo_trial_sub", "notes": "Test PO 0000001", "added_by": "integration-test@airbyte.io", "created_at": 1674034690, "type": "user", "object": "comment", "custom_fields": []}, "emitted_at": 1703800968925} +{"stream": "comment", "data": {"id": "cmt_AzZTZgTTHbgGdKK", "entity_type": "transaction", "entity_id": "txn_AzZTZgTTHbgFlKJ", "notes": "Test cash payment", "added_by": "integration-test@airbyte.io", "created_at": 1674034862, "type": "user", "object": "comment", "custom_fields": []}, "emitted_at": 1703800968928} +{"stream": "differential_price", "data": {"id": "7748afa6-fdbe-4304-ac23-d18a17f27715", "item_price_id": "cbdemo_additional-analytics-USD-yearly", "parent_item_id": "cbdemo_advanced", "price": 200000, "status": "active", "resource_version": 1674032542218, "updated_at": 1674032542, "created_at": 1674032542, "currency_code": "USD", "object": "differential_price", "custom_fields": []}, "emitted_at": 1704223399378} +{"stream": "differential_price", "data": {"id": "7748afa6-fdbe-4304-ac23-d18a17f27715", "item_price_id": "cbdemo_additional-analytics-USD-yearly", "parent_item_id": "cbdemo_advanced", "price": 200000, "status": "active", "resource_version": 1674032542218, "updated_at": 1674032542, "created_at": 1674032542, "currency_code": "USD", "object": "differential_price", "custom_fields": []}, "emitted_at": 1704223399498} +{"stream": "differential_price", "data": {"id": "7748afa6-fdbe-4304-ac23-d18a17f27715", "item_price_id": "cbdemo_additional-analytics-USD-yearly", "parent_item_id": "cbdemo_advanced", "price": 200000, "status": "active", "resource_version": 1674032542218, "updated_at": 1674032542, "created_at": 1674032542, "currency_code": "USD", "object": "differential_price", "custom_fields": []}, "emitted_at": 1704223399634} +{"stream": "gift", "data": {"id": "Azz5jBTTJ96eclvRDvCs2SkyRM3cdsflXE5ClcIpcdbOPaa950", "status": "unclaimed", "scheduled_at": 1674057609, "auto_claim": false, "updated_at": 1674057613, "resource_version": 1674057613941, "object": "gift", "no_expiry": true, "gifter": {"customer_id": "Azz5jBTTJ96Mjlv5", "invoice_id": "27", "signature": "Airbyte", "note": "Test gift", "object": "gifter"}, "gift_receiver": {"customer_id": "Azz5jBTTJ96UqlvE", "subscription_id": "Azz5jBTTJ96Y2lvK", "first_name": "Test", "last_name": "2", "email": "integration-tgest@airbyte.io", "object": "gift_receiver"}, "gift_timelines": [{"status": "unclaimed", "occurred_at": 1674057613, "object": "gift_timeline"}, {"status": "scheduled", "occurred_at": 1674057604, "object": "gift_timeline"}], "custom_fields": []}, "emitted_at": 1705083808513} +{"stream": "unbilled_charge", "data": {"id": "li_AzyhFLU1ehAb9vUH", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "date_from": 1705478400, "date_to": 1705564799, "unit_amount": 123, "pricing_model": "flat_fee", "quantity": 1, "amount": 123, "discount_amount": 0, "description": "Test charge #2", "is_voided": false, "updated_at": 1705524542, "deleted": false, "object": "unbilled_charge", "entity_type": "adhoc", "currency_code": "USD", "custom_fields": []}, "emitted_at": 1705535324699} +{"stream": "unbilled_charge", "data": {"id": "li_6oap6U1egpE4vAs", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "date_from": 1705478400, "date_to": 1705564799, "unit_amount": 100, "pricing_model": "flat_fee", "quantity": 1, "amount": 100, "discount_amount": 0, "description": "Implementation charge", "is_voided": false, "updated_at": 1705524460, "deleted": false, "object": "unbilled_charge", "entity_type": "adhoc", "currency_code": "USD", "custom_fields": []}, "emitted_at": 1705535324701} +{"stream": "hosted_page", "data": {"id": "lxlrZIGiyRcuJCr2Uk3lfsqfOBhk2qwdA", "type": "checkout_gift", "url": "https://airbyte-test.chargebee.com/pages/v3/lxlrZIGiyRcuJCr2Uk3lfsqfOBhk2qwdA/", "state": "requested", "embed": false, "created_at": 1705600066, "object": "hosted_page", "updated_at": 1705600066, "resource_version": 1705600066437, "custom_fields": []}, "emitted_at": 1705600142998} +{"stream": "hosted_page", "data": {"id": "JgmYiyyrUG00JUQmjYcuVhcdOwnqoaCBw8", "type": "collect_now", "url": "https://airbyte-test.chargebee.com/pages/v3/JgmYiyyrUG00JUQmjYcuVhcdOwnqoaCBw8/collect_now", "state": "requested", "embed": false, "created_at": 1705600053, "expires_at": 1706032053, "object": "hosted_page", "updated_at": 1705600053, "resource_version": 1705600053347, "custom_fields": []}, "emitted_at": 1705600143003} +{"stream": "hosted_page", "data": {"id": "DEj7ybCXRlg2QBdtsPk80h0cuzyWfFcdHn", "type": "checkout_gift", "url": "https://airbyte-test.chargebee.com/pages/v3/DEj7ybCXRlg2QBdtsPk80h0cuzyWfFcdHn/", "state": "requested", "embed": false, "created_at": 1705599992, "object": "hosted_page", "updated_at": 1705599992, "resource_version": 1705599992794, "custom_fields": []}, "emitted_at": 1705600143008} +{"stream": "item_family", "data": {"id": "test-4", "name": "test item family 4", "status": "active", "resource_version": 1705960880668, "updated_at": 1705960880, "object": "item_family", "custom_fields": []}, "emitted_at": 1705960929497} +{"stream": "item_family", "data": {"id": "test-3", "name": "test item family 3", "status": "active", "resource_version": 1705956309899, "updated_at": 1705956309, "object": "item_family", "custom_fields": []}, "emitted_at": 1705960929501} +{"stream": "item_family", "data": {"id": "test-2", "name": "test item family 2", "status": "active", "resource_version": 1705956286577, "updated_at": 1705956286, "object": "item_family", "custom_fields": []}, "emitted_at": 1705960929506} +{"stream": "item_family", "data": {"id": "test-1", "name": "test item family 1", "status": "active", "resource_version": 1705956260965, "updated_at": 1705956260, "object": "item_family", "custom_fields": []}, "emitted_at": 1705960929509} \ No newline at end of file diff --git a/airbyte-integrations/connectors/source-chargebee/integration_tests/future_state.json b/airbyte-integrations/connectors/source-chargebee/integration_tests/future_state.json index 32c87ffe2c6d..24299a54ae84 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/future_state.json +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/future_state.json @@ -97,13 +97,6 @@ "stream_descriptor": { "name": "quote" } } }, - { - "type": "STREAM", - "stream": { - "stream_state": { "occurred_at": 2147483647 }, - "stream_descriptor": { "name": "event" } - } - }, { "type": "STREAM", "stream": { @@ -111,13 +104,6 @@ "stream_descriptor": { "name": "transaction" } } }, - { - "type": "STREAM", - "stream": { - "stream_state": { "migrated_at": 2147483647 }, - "stream_descriptor": { "name": "site_migration_detail" } - } - }, { "type": "STREAM", "stream": { diff --git a/airbyte-integrations/connectors/source-chargebee/metadata.yaml b/airbyte-integrations/connectors/source-chargebee/metadata.yaml index 81339be284d7..85a965bb5898 100644 --- a/airbyte-integrations/connectors/source-chargebee/metadata.yaml +++ b/airbyte-integrations/connectors/source-chargebee/metadata.yaml @@ -10,7 +10,7 @@ data: connectorSubtype: api connectorType: source definitionId: 686473f1-76d9-4994-9cc7-9b13da46147c - dockerImageTag: 0.3.1 + dockerImageTag: 0.4.0 dockerRepository: airbyte/source-chargebee documentationUrl: https://docs.airbyte.com/integrations/sources/chargebee githubIssueLabel: source-chargebee @@ -27,6 +27,19 @@ data: oss: enabled: true releaseStage: generally_available + suggestedStreams: + streams: + - subscription + - customer + - invoice + - credit_note + - coupon + - transaction + - event + - order + - plan + - payment_source + - addon supportLevel: certified tags: - language:low-code diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/components.py b/airbyte-integrations/connectors/source-chargebee/source_chargebee/components.py index 4ded6f8abc65..9e71e8c97066 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/components.py +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/components.py @@ -2,9 +2,12 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # -from dataclasses import dataclass -from typing import Optional +from dataclasses import InitVar, dataclass +from typing import Any, Iterable, Mapping, Optional, Union +from airbyte_cdk.sources.declarative.incremental.cursor import Cursor +from airbyte_cdk.sources.declarative.interpolation.interpolated_string import InterpolatedString +from airbyte_cdk.sources.declarative.requesters.request_option import RequestOptionType from airbyte_cdk.sources.declarative.transformations.transformation import RecordTransformation from airbyte_cdk.sources.declarative.types import Config, Record, StreamSlice, StreamState @@ -46,3 +49,97 @@ def transform( """ record["custom_fields"] = [{"name": k, "value": v} for k, v in record.items() if k.startswith("cf_")] return record + + +@dataclass +class IncrementalSingleSliceCursor(Cursor): + cursor_field: Union[InterpolatedString, str] + config: Config + parameters: InitVar[Mapping[str, Any]] + + def __post_init__(self, parameters: Mapping[str, Any]): + self._state = {} + self.cursor_field = InterpolatedString.create(self.cursor_field, parameters=parameters) + + def get_request_params( + self, + stream_state: Optional[StreamState] = None, + stream_slice: Optional[StreamSlice] = None, + next_page_token: Optional[Mapping[str, Any]] = None, + ) -> Mapping[str, Any]: + # Current implementation does not provide any options to update request params. + # Returns empty dict + return self._get_request_option(RequestOptionType.request_parameter, stream_slice) + + def get_request_headers( + self, + stream_state: Optional[StreamState] = None, + stream_slice: Optional[StreamSlice] = None, + next_page_token: Optional[Mapping[str, Any]] = None, + ) -> Mapping[str, Any]: + # Current implementation does not provide any options to update request headers. + # Returns empty dict + return self._get_request_option(RequestOptionType.header, stream_slice) + + def get_request_body_data( + self, + stream_state: Optional[StreamState] = None, + stream_slice: Optional[StreamSlice] = None, + next_page_token: Optional[Mapping[str, Any]] = None, + ) -> Mapping[str, Any]: + # Current implementation does not provide any options to update body data. + # Returns empty dict + return self._get_request_option(RequestOptionType.body_data, stream_slice) + + def get_request_body_json( + self, + stream_state: Optional[StreamState] = None, + stream_slice: Optional[StreamSlice] = None, + next_page_token: Optional[Mapping[str, Any]] = None, + ) -> Optional[Mapping]: + # Current implementation does not provide any options to update body json. + # Returns empty dict + return self._get_request_option(RequestOptionType.body_json, stream_slice) + + def _get_request_option(self, option_type: RequestOptionType, stream_slice: StreamSlice): + return {} + + def get_stream_state(self) -> StreamState: + return self._state + + def set_initial_state(self, stream_state: StreamState): + cursor_field = self.cursor_field.eval(self.config) + cursor_value = stream_state.get(cursor_field) + if cursor_value: + self._state[cursor_field] = cursor_value + self._state["prior_state"] = self._state.copy() + + def close_slice(self, stream_slice: StreamSlice, most_recent_record: Optional[Record]) -> None: + latest_record = self._state if self.is_greater_than_or_equal(self._state, most_recent_record) else most_recent_record + if latest_record: + cursor_field = self.cursor_field.eval(self.config) + self._state[cursor_field] = latest_record[cursor_field] + + def stream_slices(self) -> Iterable[Mapping[str, Any]]: + yield {} + + def should_be_synced(self, record: Record) -> bool: + """ + Evaluating if a record should be synced allows for filtering and stop condition on pagination + """ + record_cursor_value = record.get(self.cursor_field.eval(self.config)) + return bool(record_cursor_value) + + def is_greater_than_or_equal(self, first: Record, second: Record) -> bool: + """ + Evaluating which record is greater in terms of cursor. This is used to avoid having to capture all the records to close a slice + """ + cursor_field = self.cursor_field.eval(self.config) + first_cursor_value = first.get(cursor_field) if first else None + second_cursor_value = second.get(cursor_field) if second else None + if first_cursor_value and second_cursor_value: + return first_cursor_value > second_cursor_value + elif first_cursor_value: + return True + else: + return False diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml b/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml index c47fa6d7dd11..9b4fd4f7f279 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml @@ -63,7 +63,6 @@ definitions: field_name: offset requester: $ref: "#/definitions/requester" - base_stream: retriever: $ref: "#/definitions/retriever" @@ -81,6 +80,18 @@ definitions: updated_at[between]: "'[{{stream_slice['start_time']}}, {{stream_slice['end_time']}}]'" incremental_sync: $ref: "#/definitions/date_stream_slicer" + semi_incremental_stream: + $ref: "#/definitions/base_stream" + incremental_sync: + type: CustomIncrementalSync + class_name: source_chargebee.components.IncrementalSingleSliceCursor + cursor_field: "updated_at" + retriever: + $ref: "#/definitions/base_stream/retriever" + record_selector: + $ref: "#/definitions/nested_selector" + record_filter: + condition: "{{ record['updated_at'] >= ( stream_state.get('prior_state', {}).get('updated_at', 0) if stream_state else stream_slice.get('prior_state', {}).get('updated_at', 0) ) }}" addon_stream: $ref: "#/definitions/base_incremental_stream" $parameters: @@ -89,6 +100,7 @@ definitions: path: "/addons" stream_cursor_field: "updated_at" attached_item_stream: + $comment: "As of 2/8/24 this stream should be full refresh only as there is an issue with state being appended rather than replaced, causing duplicates. See GH Issue: https://github.com/airbytehq/airbyte/issues/33854" $ref: "#/definitions/base_stream" retriever: $ref: "#/definitions/retriever" @@ -97,12 +109,12 @@ definitions: parent_stream_configs: - type: ParentStreamConfig stream: "#/definitions/item_stream" - parent_key: id - partition_field: id + parent_key: "id" + partition_field: "item_id" $parameters: name: "attached_item" primary_key: "id" - path: "/items/{{ stream_slice.id }}/attached_items" + path: "/items/{{ stream_slice.item_id }}/attached_items" customer_stream: $ref: "#/definitions/base_incremental_stream" $parameters: @@ -130,7 +142,7 @@ definitions: response_filters: - http_codes: [404] action: IGNORE - error_message: "Entity unavailable. Customer must have been deleted." + error_message: "Entity unavailable. Customer may have been deleted." - error_message_contains: "This API operation is not enabled for this site" action: IGNORE error_message: "Stream is available only for Product Catalog 1.0" @@ -138,6 +150,13 @@ definitions: backoff_strategies: - type: WaitTimeFromHeader header: "Retry-After" + transformations: + - type: AddFields + fields: + - path: ["customer_id"] + value: "{{ stream_slice.id }}" + - type: CustomTransformation + class_name: source_chargebee.components.CustomFieldTransformation $parameters: name: "contact" primary_key: "id" @@ -188,7 +207,7 @@ definitions: path: "/events" stream_cursor_field: "occurred_at" gift_stream: - $ref: "#/definitions/base_stream" + $ref: "#/definitions/semi_incremental_stream" $parameters: name: "gift" primary_key: "id" @@ -273,11 +292,12 @@ definitions: path: "/transactions" stream_cursor_field: "updated_at" unbilled_charge_stream: - $ref: "#/definitions/base_stream" + $ref: "#/definitions/semi_incremental_stream" $parameters: name: "unbilled_charge" primary_key: "id" path: "/unbilled_charges" + stream_cursor_field: "updated_at" virtual_bank_account_stream: $ref: "#/definitions/base_incremental_stream" $parameters: @@ -311,27 +331,44 @@ definitions: stream: "#/definitions/quote_stream" parent_key: id partition_field: id + requester: + $ref: "#/definitions/requester" + error_handler: + type: CompositeErrorHandler + error_handlers: + - type: DefaultErrorHandler + response_filters: + - http_codes: [404] + action: IGNORE + error_message: "Entity unavailable. Quote may have been deleted." + transformations: + - type: AddFields + fields: + - path: ["quote_id"] + value: "{{ stream_slice.id }}" + - type: CustomTransformation + class_name: source_chargebee.components.CustomFieldTransformation $parameters: name: "quote_line_group" primary_key: "id" path: "/quotes/{{ stream_slice.id }}/quote_line_groups" site_migration_detail_stream: $ref: "#/definitions/base_stream" - retriever: - $ref: "#/definitions/retriever" - requester: - $ref: "#/definitions/retriever/requester" - request_parameters: - sort_by[asc]: migrated_at - include_deleted: "true" - migrated_at[between]: "'[{{stream_slice['start_time']}}, {{stream_slice['end_time']}}]'" incremental_sync: - $ref: "#/definitions/date_stream_slicer" + type: CustomIncrementalSync + class_name: source_chargebee.components.IncrementalSingleSliceCursor + cursor_field: "migrated_at" + retriever: + $ref: "#/definitions/base_stream/retriever" + record_selector: + $ref: "#/definitions/nested_selector" + record_filter: + condition: "{{ record['updated_at'] >= ( stream_state.get('prior_state', {}).get('updated_at', 0) if stream_state else stream_slice.get('prior_state', {}).get('updated_at', 0) ) }}" $parameters: name: "site_migration_detail" primary_key: "entity_id" path: "/site_migration_details" - stream_cursor_field: "migrated_at" + cursor_field: "migrated_at" comment_stream: $ref: "#/definitions/base_stream" retriever: diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json index 0564ea8a6172..25e97d7b4a41 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json @@ -4,20 +4,16 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "name": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "invoice_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "pricing_model": { "type": ["string", "null"] @@ -26,23 +22,19 @@ "type": ["string", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "period_unit": { "type": ["string", "null"] }, "unit": { - "type": ["string", "null"], - "maxLength": 30 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -54,12 +46,10 @@ "type": ["boolean", "null"] }, "tax_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "taxjar_product_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "avalara_sale_type": { "type": ["string", "null"] @@ -71,35 +61,28 @@ "type": ["integer", "null"] }, "sku": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category1": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category2": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category3": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category4": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "is_shippable": { "type": ["boolean", "null"] }, "shipping_frequency_period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "shipping_frequency_period_unit": { "type": ["string", "null"] @@ -111,22 +94,19 @@ "type": ["integer", "null"] }, "price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "included_in_mrr": { "type": ["boolean", "null"] }, "invoice_notes": { - "type": ["string", "null"], - "maxLength": 2000 + "type": ["string", "null"] }, "taxable": { "type": ["boolean", "null"] }, "tax_profile_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "meta_data": { "type": ["object", "null"], @@ -153,44 +133,28 @@ "type": ["object", "null"], "properties": { "starting_unit": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "ending_unit": { "type": ["integer", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "starting_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "ending_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] } } } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/attached_item.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/attached_item.json index 73207b7e2c57..a52c86315350 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/attached_item.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/attached_item.json @@ -4,16 +4,13 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "parent_item_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "item_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "type": { "type": ["string", "null"] @@ -22,16 +19,13 @@ "type": ["string", "null"] }, "quantity": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "billing_cycles": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "charge_on_event": { "type": ["string", "null"] @@ -50,20 +44,9 @@ }, "object": { "type": ["string", "null"] - } - }, - "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } + }, + "custom_fields": { + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json index 1f5d920c7399..48cc655b1d0e 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json @@ -28,7 +28,7 @@ "type": ["string", "null"] }, "custom_fields": { - "type": ["array", "null"] + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/contact.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/contact.json index c862f291ace7..9225306f8fbe 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/contact.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/contact.json @@ -15,6 +15,9 @@ "id": { "type": ["string", "null"] }, + "customer_id": { + "type": ["string", "null"] + }, "label": { "type": ["string", "null"] }, @@ -30,19 +33,11 @@ "send_billing_email": { "type": ["boolean", "null"] }, + "phone": { + "type": ["string", "null"] + }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.json index 4fbd0682d34b..512860182a47 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.json @@ -4,16 +4,13 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "max-length": 100 + "type": ["string", "null"] }, "name": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "invoice_name": { - "type": ["string", "null"], - "max-length": 100 + "type": ["string", "null"] }, "discount_type": { "type": ["string", "null"] @@ -25,8 +22,7 @@ "type": ["integer", "null"] }, "currency_code": { - "type": ["string", "null"], - "max-length": 3 + "type": ["string", "null"] }, "duration_type": { "type": ["string", "null"] @@ -71,8 +67,7 @@ "type": ["integer", "null"] }, "invoice_notes": { - "type": ["string", "null"], - "max-length": 2000 + "type": ["string", "null"] }, "object": { "type": ["string", "null"] @@ -119,18 +114,7 @@ } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/credit_note.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/credit_note.json index 5bcc57427ca0..fbd4309027fd 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/credit_note.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/credit_note.json @@ -4,20 +4,16 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "subscription_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "reference_invoice_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "type": { "type": ["string", "null"] @@ -29,8 +25,7 @@ "type": ["string", "null"] }, "vat_number": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "date": { "type": ["integer", "null"] @@ -39,24 +34,19 @@ "type": ["string", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_allocated": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_refunded": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_available": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refunded_at": { "type": ["integer", "null"] @@ -74,27 +64,23 @@ "type": ["integer", "null"] }, "sub_total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "sub_total_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "total_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "local_currency_code": { "type": ["string", "null"] }, "round_off_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "fractional_correction": { "type": ["integer", "null"], - "minimum": 0 + "maximum": 50000 }, "deleted": { "type": ["boolean", "null"] @@ -103,16 +89,13 @@ "type": ["string", "null"] }, "vat_number_prefix": { - "type": ["string", "null"], - "maxLength": 10 + "type": ["string", "null"] }, "base_currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "business_entity_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "channel": { "type": ["string", "null"] @@ -130,18 +113,19 @@ "type": ["boolean", "null"], "$comment": "Only available for accounts which have enabled taxes for EU Region for taxes." }, + "customer_notes": { + "type": ["string", "null"] + }, "line_items": { "type": ["array", "null"], "items": { "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "subscription_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "date_from": { "type": ["integer", "null"] @@ -165,41 +149,31 @@ "type": ["boolean", "null"] }, "tax_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_rate": { - "type": ["number", "null"], - "minimum": 0.0, - "maximum": 100.0 + "type": ["number", "null"] }, "unit_amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "item_level_discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "entity_description": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "entity_type": { "type": ["string", "null"] @@ -208,12 +182,19 @@ "type": ["string", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] + }, + "metered": { + "type": ["boolean", "null"] + }, + "reference_line_item_id": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -224,19 +205,16 @@ "type": ["object", "null"], "properties": { "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "entity_type": { "type": ["string", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } } @@ -247,19 +225,16 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "discount_type": { "type": ["string", "null"] }, "discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } } @@ -270,39 +245,31 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "starting_unit": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "ending_unit": { "type": ["integer", "null"] }, "quantity_used": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "unit_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "starting_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "ending_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "quantity_used_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "unit_amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] } } } @@ -313,16 +280,13 @@ "type": ["object", "null"], "properties": { "name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] } } } @@ -333,16 +297,13 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "tax_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "tax_rate": { "type": ["number", "null"], - "minimum": 0.0, "maximum": 100.0 }, "is_partial_tax_applied": { @@ -352,27 +313,22 @@ "type": ["boolean", "null"] }, "taxable_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_juris_type": { "type": ["string", "null"] }, "tax_juris_name": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "tax_juris_code": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "tax_amount_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "local_currency-code": { "type": ["string", "null"] @@ -386,12 +342,10 @@ "type": ["object", "null"], "properties": { "txn_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "applied_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "applied_at": { "type": ["integer", "null"] @@ -403,8 +357,7 @@ "type": ["integer", "null"] }, "txn_amount": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "refund_reason_code": { "type": ["string", "null"] @@ -418,12 +371,10 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "description": { "type": ["string", "null"] @@ -443,12 +394,10 @@ "type": ["object", "null"], "properties": { "invoice_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "allocated_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "allocated_at": { "type": ["integer", "null"] @@ -462,19 +411,105 @@ } } }, - "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } + "shipping_address": { + "type": ["object", "null"], + "properties": { + "first_name": { + "type": ["string", "null"] + }, + "last_name": { + "type": ["string", "null"] + }, + "email": { + "type": ["string", "null"] + }, + "company": { + "type": ["string", "null"] + }, + "phone": { + "type": ["string", "null"] + }, + "line1": { + "type": ["string", "null"] + }, + "line2": { + "type": ["string", "null"] + }, + "line3": { + "type": ["string", "null"] + }, + "city": { + "type": ["string", "null"] + }, + "state_code": { + "type": ["string", "null"] + }, + "state": { + "type": ["string", "null"] + }, + "country": { + "type": ["string", "null"] + }, + "zip": { + "type": ["string", "null"] + }, + "validation_status": { + "type": ["string", "null"] } } + }, + "billing_address": { + "type": ["object", "null"], + "properties": { + "first_name": { + "type": ["string", "null"] + }, + "last_name": { + "type": ["string", "null"] + }, + "email": { + "type": ["string", "null"] + }, + "company": { + "type": ["string", "null"] + }, + "phone": { + "type": ["string", "null"] + }, + "line1": { + "type": ["string", "null"] + }, + "line2": { + "type": ["string", "null"] + }, + "line3": { + "type": ["string", "null"] + }, + "city": { + "type": ["string", "null"] + }, + "state_code": { + "type": ["string", "null"] + }, + "state": { + "type": ["string", "null"] + }, + "country": { + "type": ["string", "null"] + }, + "zip": { + "type": ["string", "null"] + }, + "validation_status": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + } + } + }, + "custom_fields": { + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/customer.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/customer.json index 0d142b990644..74ea11e34988 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/customer.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/customer.json @@ -4,32 +4,25 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "vat_number": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "auto_collection": { "type": ["string", "null"] @@ -56,8 +49,7 @@ "type": ["integer", "null"] }, "created_from_ip": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "exemption_details": { "type": ["array", "null"], @@ -73,8 +65,7 @@ "type": ["string", "null"] }, "exempt_number": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "resource_version": { "type": ["integer", "null"] @@ -83,8 +74,7 @@ "type": ["integer", "null"] }, "locale": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "billing_date": { "type": ["integer", "null"] @@ -108,36 +98,28 @@ "type": ["string", "null"] }, "primary_payment_source_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "backup_payment_source_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "invoice_notes": { - "type": ["string", "null"], - "maxLength": 2000 + "type": ["string", "null"] }, "preferred_currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "promotional_credits": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "unbilled_charges": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refundable_credits": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "excess_payments": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "deleted": { "type": ["boolean", "null"] @@ -155,19 +137,16 @@ "type": ["boolean", "null"] }, "client_profile_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "use_default_hierarchy_settings": { "type": ["boolean", "null"] }, "vat_number_prefix": { - "type": ["string", "null"], - "maxLength": 10 + "type": ["string", "null"] }, "business_entity_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "channel": { "type": ["string", "null"] @@ -175,63 +154,59 @@ "object": { "type": ["string", "null"] }, + "mrr": { + "type": ["integer", "null"] + }, + "tax_providers_fields": { + "type": ["array", "null"] + }, "billing_address": { "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -241,12 +216,10 @@ "type": ["object", "null"], "properties": { "external_customer_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "referral_sharing_url": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "created_at": { "type": ["integer", "null"] @@ -255,16 +228,13 @@ "type": ["integer", "null"] }, "referral_campaign_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "referral_account_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "referral_external_campaign_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "referral_system": { "type": ["string", "null"] @@ -278,28 +248,22 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "label": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "enabled": { "type": ["boolean", "null"] @@ -309,6 +273,9 @@ }, "send_billing_email": { "type": ["boolean", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -323,15 +290,16 @@ "type": ["string", "null"] }, "gateway_account_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] }, "reference_id": { - "type": ["string", "null"], - "maxLength": 200 + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -341,24 +309,25 @@ "type": ["object", "null"], "properties": { "promotional_credits": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "excess_payments": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refundable_credits": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "unbilled_charges": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] + }, + "balance_currency_code": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -367,16 +336,13 @@ "type": ["object", "null"], "properties": { "parent_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "payment_owner_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "invoice_owner_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] } } }, @@ -428,18 +394,7 @@ "properties": {} }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/differential_price.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/differential_price.json index 5087f9f9bc99..7897c345600f 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/differential_price.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/differential_price.json @@ -72,6 +72,9 @@ }, "object": { "type": ["string", "null"] + }, + "custom_fields": { + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/event.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/event.json index 98fe0b6fdc13..bc5181a48763 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/event.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/event.json @@ -4,8 +4,7 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "occurred_at": { "type": ["integer", "null"] @@ -14,8 +13,7 @@ "type": ["string", "null"] }, "user": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "event_type": { "type": ["string", "null"] @@ -38,8 +36,7 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "webhook_status": { "type": ["string", "null"] @@ -48,18 +45,7 @@ } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/gift.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/gift.json index 32fde3838b79..339d01ac750d 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/gift.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/gift.json @@ -7,8 +7,7 @@ "type": ["string", "null"] }, "status": { - "type": ["string", "null"], - "enum": ["scheduled", "unclaimed", "claimed", "cancelled", "expired"] + "type": ["string", "null"] }, "scheduled_at": { "type": ["integer", "null"] @@ -42,6 +41,9 @@ }, "note": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -62,6 +64,9 @@ }, "email": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -71,34 +76,22 @@ "type": ["object", "null"], "properties": { "status": { - "type": ["string", "null"], - "enum": [ - "scheduled", - "unclaimed", - "claimed", - "cancelled", - "expired" - ] + "type": ["string", "null"] }, "occurred_at": { "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } } }, + "object": { + "type": ["string", "null"] + }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/hosted_page.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/hosted_page.json index 8ad0b53168de..b5c838f97186 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/hosted_page.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/hosted_page.json @@ -7,26 +7,13 @@ "type": ["string", "null"] }, "type": { - "type": ["string", "null"], - "enum": [ - "checkout_new", - "checkout_existing", - "update_payment_method", - "manage_payment_sources", - "collect_now", - "extend_subscription", - "checkout_gift", - "claim_gift", - "checkout_one_time", - "pre_cancel" - ] + "type": ["string", "null"] }, "url": { "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "enum": ["created", "requested", "succeeded", "cancelled", "acknowledged"] + "type": ["string", "null"] }, "pass_thru_content": { "type": ["string", "null"] @@ -55,19 +42,11 @@ "business_entity_id": { "type": ["string", "null"] }, + "object": { + "type": ["string", "null"] + }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json index 8c8bad1b3561..5ad0238ce30c 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json @@ -5,20 +5,16 @@ "additionalProperties": true, "properties": { "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "po_number": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "subscription_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "recurring": { "type": ["boolean", "null"] @@ -27,8 +23,7 @@ "type": ["string", "null"] }, "vat_number": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "price_type": { "type": ["string", "null"] @@ -46,32 +41,25 @@ "type": ["number", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_paid": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_adjusted": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "write_off_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "credits_applied": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_due": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "paid_at": { "type": ["integer", "null"] @@ -92,23 +80,19 @@ "type": ["integer", "null"] }, "sub_total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "sub_total_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "total_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "local_currency_code": { "type": ["string", "null"] }, "tax": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "local_currency_exchange_rate": { "type": ["number", "null"] @@ -117,8 +101,7 @@ "type": ["boolean", "null"] }, "new_sales_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "has_advance_charges": { "type": ["boolean", "null"] @@ -129,6 +112,9 @@ "is_gifted": { "type": ["boolean", "null"] }, + "is_digital": { + "type": ["boolean", "null"] + }, "generated_at": { "type": ["integer", "null"] }, @@ -136,8 +122,7 @@ "type": ["integer", "null"] }, "amount_to_collect": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "round_off_amount": { "type": ["integer", "null"] @@ -146,8 +131,7 @@ "type": ["string", "null"] }, "void_reason_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "deleted": { "type": ["boolean", "null"] @@ -156,8 +140,7 @@ "type": ["string", "null"] }, "vat_number_prefix": { - "type": ["string", "null"], - "maxLength": 10 + "type": ["string", "null"] }, "channel": { "type": ["string", "null"] @@ -166,8 +149,7 @@ "type": ["string", "null"] }, "base_currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "object": { "type": ["string", "null"] @@ -178,12 +160,10 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "subscription_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "date_from": { "type": ["integer", "null"] @@ -207,41 +187,31 @@ "type": ["boolean", "null"] }, "tax_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_rate": { - "type": ["number", "null"], - "minimum": 0.0, - "maximum": 100.0 + "type": ["number", "null"] }, "unit_amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 39 + "type": ["string", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 39 + "type": ["string", "null"] }, "amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 39 + "type": ["string", "null"] }, "discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "item_level_discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "entity_description": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "entity_type": { "type": ["string", "null"] @@ -250,15 +220,16 @@ "type": ["string", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "metered": { "type": ["boolean", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -269,23 +240,28 @@ "type": ["object", "null"], "properties": { "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "entity_type": { "type": ["string", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "coupon_set_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] + }, + "discount_type": { + "type": ["string", "null"] + }, + "discount_percentage": { + "type": ["number", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -296,19 +272,22 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "discount_type": { "type": ["string", "null"] }, "discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] + }, + "coupon_id": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -319,16 +298,13 @@ "type": ["object", "null"], "properties": { "name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] } } } @@ -339,12 +315,10 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "tax_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "tax_rate": { "type": ["number", "null"] @@ -365,27 +339,22 @@ "type": ["boolean", "null"] }, "taxable_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_juris_type": { "type": ["string", "null"] }, "tax_juris_name": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "tax_juris_code": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "tax_amount_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "local_currency_code": { "type": ["string", "null"] @@ -399,39 +368,34 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "starting_unit": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "ending_unit": { "type": ["integer", "null"] }, "quantity_used": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "unit_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "starting_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "ending_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "quantity_used_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "unit_amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -442,12 +406,10 @@ "type": ["object", "null"], "properties": { "txn_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "applied_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "applied_at": { "type": ["integer", "null"] @@ -459,8 +421,7 @@ "type": ["integer", "null"] }, "txn_amount": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] } } } @@ -474,8 +435,7 @@ "type": ["integer", "null"] }, "transaction_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "dunning_type": { "type": ["string", "null"] @@ -487,8 +447,7 @@ "type": ["string", "null"] }, "txn_amount": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] } } } @@ -499,12 +458,10 @@ "type": ["object", "null"], "properties": { "cn_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "applied_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "applied_at": { "type": ["integer", "null"] @@ -513,8 +470,7 @@ "type": ["string", "null"] }, "cn_create_reason_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "cn_date": { "type": ["integer", "null"] @@ -531,22 +487,19 @@ "type": ["object", "null"], "properties": { "cn_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "cn_reason_code": { "type": ["string", "null"] }, "cn_create_reason_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "cn_date": { "type": ["integer", "null"] }, "cn_total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "cn_status": { "type": ["string", "null"] @@ -560,22 +513,19 @@ "type": ["object", "null"], "properties": { "cn_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "cn_reason_code": { "type": ["string", "null"] }, "cn_create_reason_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "cn_date": { "type": ["integer", "null"] }, "cn_total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "cn_status": { "type": ["string", "null"] @@ -589,12 +539,10 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "document_number": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -603,16 +551,13 @@ "type": ["string", "null"] }, "reference_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "fulfillment_status": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "batch_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "created_at": { "type": ["integer", "null"] @@ -629,12 +574,10 @@ "type": ["string", "null"] }, "note": { - "type": ["string", "null"], - "maxLength": 2000 + "type": ["string", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } } @@ -643,59 +586,49 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 180 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -703,16 +636,13 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "descriptor": { - "type": ["string", "null"], - "maxLength": 65000 + "type": ["string", "null"] }, "additional_info": { - "type": ["string", "null"], - "maxLength": 65000 + "type": ["string", "null"] } } }, @@ -720,59 +650,49 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -780,19 +700,16 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "reference_number": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] }, "message": { - "type": ["string", "null"], - "maxLength": 2500 + "type": ["string", "null"] } } }, @@ -802,40 +719,25 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 65000 + "type": ["string", "null"] }, "date": { "type": ["integer", "null"] }, "reference_number": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item.json index d3504eee807b..7c74ff778665 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item.json @@ -4,16 +4,13 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "name": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -25,8 +22,7 @@ "type": ["integer", "null"] }, "item_family_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "type": { "type": ["string", "null"] @@ -38,8 +34,7 @@ "type": ["boolean", "null"] }, "redirect_url": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "enabled_for_checkout": { "type": ["boolean", "null"] @@ -54,12 +49,10 @@ "type": ["string", "null"] }, "gift_claim_redirect_url": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "unit": { - "type": ["string", "null"], - "maxLength": 30 + "type": ["string", "null"] }, "metered": { "type": ["boolean", "null"] @@ -75,8 +68,7 @@ "properties": {} }, "external_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "applicable_items": { "type": ["array", "null"], @@ -84,8 +76,7 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } } @@ -97,18 +88,7 @@ "type": ["string", "null"] }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_family.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_family.json index e1e096e70d9c..bb9b57b37006 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_family.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_family.json @@ -28,7 +28,7 @@ "type": ["string", "null"] }, "custom_fields": { - "type": ["array", "null"] + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_price.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_price.json index 357e643c7a9a..be2eecb56103 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_price.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_price.json @@ -4,57 +4,46 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "name": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "item_family_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "item_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] }, "external_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "pricing_model": { "type": ["string", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "period_unit": { "type": ["string", "null"] }, "trial_period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "trial_period_unit": { "type": ["string", "null"] @@ -63,23 +52,19 @@ "type": ["string", "null"] }, "shipping_period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "shipping_period_unit": { "type": ["string", "null"] }, "billing_cycles": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "free_quantity": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "free_quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "resource_version": { "type": ["integer", "null"] @@ -94,8 +79,7 @@ "type": ["integer", "null"] }, "invoice_notes": { - "type": ["string", "null"], - "maxLength": 2000 + "type": ["string", "null"] }, "is_taxable": { "type": ["boolean", "null"] @@ -119,15 +103,13 @@ "type": ["object", "null"], "properties": { "starting_unit": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "ending_unit": { "type": ["integer", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] } } } @@ -136,8 +118,7 @@ "type": ["object", "null"], "properties": { "tax_profile_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "avalara_sale_type": { "type": ["string", "null"] @@ -149,12 +130,10 @@ "type": ["integer", "null"] }, "avalara_tax_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "taxjar_product_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] } } }, @@ -162,28 +141,22 @@ "type": ["object", "null"], "properties": { "sku": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category1": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category2": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category3": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category4": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } }, @@ -194,18 +167,7 @@ "type": ["string", "null"] }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/order.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/order.json index 34768cd9672f..b985c3fabca9 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/order.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/order.json @@ -5,24 +5,19 @@ "additionalProperties": true, "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "document_number": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "invoice_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "subscription_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -40,12 +35,10 @@ "type": ["string", "null"] }, "reference_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "fulfillment_status": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "order_date": { "type": ["integer", "null"] @@ -54,52 +47,40 @@ "type": ["integer", "null"] }, "note": { - "type": ["string", "null"], - "maxLength": 600 + "type": ["string", "null"] }, "tracking_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "tracking_url": { - "type": ["string", "null"], - "maxLength": 255 + "type": ["string", "null"] }, "batch_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "created_by": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "shipment_carrier": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "invoice_round_off_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_paid": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_adjusted": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refundable_credits_issued": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refundable_credits": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "rounding_adjustement": { "type": ["integer", "null"] @@ -138,50 +119,40 @@ "type": ["boolean", "null"] }, "original_order_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "discount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "sub_total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "total": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "deleted": { "type": ["boolean", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "is_gifted": { "type": ["boolean", "null"] }, "gift_note": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "gift_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "resend_reason": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "business_entity_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "base_currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "exchange_rate": { "type": ["number", "null"] @@ -195,63 +166,49 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "invoice_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "invoice_line_item_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "unit_price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "fulfillment_quantity": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "fulfillment_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_paid": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_adjusted": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refundable_credits_issued": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "refundable_credits": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "is_shippable": { "type": ["boolean", "null"] }, "sku": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -260,16 +217,16 @@ "type": ["string", "null"] }, "item_level_discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "entity_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -278,59 +235,49 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 180 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -338,59 +285,49 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -400,17 +337,13 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "tax_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "tax_rate": { - "type": ["number", "null"], - "minimum": 0.0, - "maximum": 100.0 + "type": ["number", "null"] }, "is_partial_tax_applied": { "type": ["boolean", "null"] @@ -419,27 +352,22 @@ "type": ["boolean", "null"] }, "taxable_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "tax_juris_type": { "type": ["string", "null"] }, "tax_juris_name": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "tax_juris_code": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "tax_amount_in_local_currency": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "local_currency-code": { "type": ["string", "null"] @@ -453,19 +381,22 @@ "type": ["object", "null"], "properties": { "line_item_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "discount_type": { "type": ["string", "null"] }, "coupon_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "discount_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] + }, + "entity_id": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -476,26 +407,25 @@ "type": ["object", "null"], "properties": { "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "type": { "type": ["string", "null"] }, "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] }, "amount_adjusted": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_refunded": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -506,33 +436,19 @@ "type": ["object", "null"], "properties": { "order_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "reason": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] } } } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/payment_source.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/payment_source.json index 361df91555ee..2e4f1bbfeb68 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/payment_source.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/payment_source.json @@ -22,89 +22,16 @@ "type": ["string", "null"] }, "type": { - "type": ["string", "null"], - "enum": [ - "card", - "paypal_express_checkout", - "amazon_payments", - "direct_debit", - "generic", - "alipay", - "unionpay", - "apple_pay", - "wechat_pay", - "ideal", - "google_pay", - "sofort", - "bancontact", - "giropay", - "dotpay", - "upi", - "netbanking_emandates" - ] + "type": ["string", "null"] }, "reference_id": { "type": ["string", "null"] }, "status": { - "type": ["string", "null"], - "enum": [ - "valid", - "expiring", - "expired", - "invalid", - "pending_verification" - ] + "type": ["string", "null"] }, "gateway": { - "type": ["string", "null"], - "enum": [ - "chargebee", - "chargebee_payments", - "stripe", - "wepay", - "braintree", - "authorize_net", - "paypal_pro", - "pin", - "eway", - "eway_rapid", - "worldpay", - "balanced_payments", - "beanstream", - "bluepay", - "elavon", - "first_data_global", - "hdfc", - "migs", - "nmi", - "ogone", - "paymill", - "paypal_payflow_pro", - "sage_pay", - "tco", - "wirecard", - "amazon_payments", - "paypal_express_checkout", - "gocardless", - "adyen", - "orbital", - "moneris_us", - "moneris", - "bluesnap", - "cybersource", - "vantiv", - "checkout_com", - "paypal", - "ingenico_direct", - "exact", - "mollie", - "quickbooks", - "razorpay", - "global_payments", - "bank_of_america", - "not_applicable" - ] + "type": ["string", "null"] }, "gateway_account_id": { "type": ["string", "null"] @@ -137,22 +64,10 @@ "type": ["string", "null"] }, "brand": { - "type": ["string", "null"], - "enum": [ - "visa", - "mastercard", - "american_express", - "discover", - "jcb", - "diners_club", - "other", - "bancontact", - "not_applicable" - ] + "type": ["string", "null"] }, "funding_type": { - "type": ["string", "null"], - "enum": ["credit", "dedit", "prepaid", "not_known", "not_applicable"] + "type": ["string", "null"] }, "expiry_month": { "type": ["integer", "null"] @@ -183,6 +98,9 @@ }, "masked_number": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -208,16 +126,13 @@ "type": ["string", "null"] }, "account_type": { - "type": ["string", "null"], - "enum": ["checking", "savings", "business_checking", "current"] + "type": ["string", "null"] }, "echeck_type": { - "type": ["string", "null"], - "enum": ["web", "ppd", "ccd"] + "type": ["string", "null"] }, "account_holder_type": { - "type": ["string", "null"], - "enum": ["individual", "company"] + "type": ["string", "null"] }, "email": { "type": ["string", "null"] @@ -269,18 +184,7 @@ } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/plan.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/plan.json index ecb0a70f78f1..705049a84e59 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/plan.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/plan.json @@ -4,39 +4,31 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "name": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "invoice_name": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "description": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "period_unit": { "type": ["string", "null"] }, "trial_period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "trial_period_unit": { "type": ["string", "null"] @@ -48,12 +40,10 @@ "type": ["string", "null"] }, "free_quantity": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "setup_cost": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "status": { "type": ["string", "null"] @@ -62,12 +52,10 @@ "type": ["integer", "null"] }, "billing_cycles": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "redirect_url": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "enabled_in_hosted_pages": { "type": ["boolean", "null"] @@ -79,12 +67,10 @@ "type": ["string", "null"] }, "tax_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "taxjar_product_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "avalara_sale_type": { "type": ["string", "null"] @@ -96,35 +82,28 @@ "type": ["integer", "null"] }, "sku": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category1": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category2": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category3": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "accounting_category4": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "is_shippable": { "type": ["boolean", "null"] }, "shipping_frequency_period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "shipping_frequency_period_unit": { "type": ["string", "null"] @@ -139,20 +118,16 @@ "type": ["boolean", "null"] }, "claim_url": { - "type": ["string", "null"], - "maxLength": 500 + "type": ["string", "null"] }, "free_quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "invoice_notes": { - "type": ["string", "null"], - "maxLength": 2000 + "type": ["string", "null"] }, "channel": { "type": ["string", "null"] @@ -167,8 +142,7 @@ "type": ["boolean", "null"] }, "tax_profile_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "meta_data": { "type": ["object", "null"], @@ -186,27 +160,22 @@ "type": ["object", "null"], "properties": { "starting_unit": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "ending_unit": { "type": ["integer", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "starting_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "ending_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] } } } @@ -217,8 +186,7 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] } } } @@ -229,23 +197,19 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "quantity": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "billing_cycles": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "type": { "type": ["string", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] } } } @@ -256,12 +220,10 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "quantity": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "on_event": { "type": ["string", "null"] @@ -270,25 +232,13 @@ "type": ["boolean", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] } } } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/promotional_credit.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/promotional_credit.json index 4239abe82ae5..526d523fee1a 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/promotional_credit.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/promotional_credit.json @@ -10,8 +10,7 @@ "type": ["string", "null"] }, "type": { - "type": ["string", "null"], - "enum": ["increment", "decrement"] + "type": ["string", "null"] }, "amount_in_decimal": { "type": ["string", "null"] @@ -26,8 +25,7 @@ "type": ["string", "null"] }, "credit_type": { - "type": ["string", "null"], - "enum": ["loyalty_credits", "referral_rewards", "general"] + "type": ["string", "null"] }, "reference": { "type": ["string", "null"] @@ -45,18 +43,7 @@ "type": ["string", "null"] }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote.json index 0e4198814f2c..aa67b7fbb82a 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote.json @@ -22,23 +22,16 @@ "type": ["string", "null"] }, "status": { - "type": ["string", "null"], - "enum": ["open", "accepted", "declined", "invoiced", "closed"] + "type": ["string", "null"] }, "operation_type": { - "type": ["string", "null"], - "enum": [ - "create_subscription_for_customer", - "change_subscription", - "onetime_invoice" - ] + "type": ["string", "null"] }, "vat_number": { "type": ["string", "null"] }, "price_type": { - "type": ["string", "null"], - "enum": ["tax_exclusive", "tax_inclusive"] + "type": ["string", "null"] }, "valid_till": { "type": ["integer", "null"] @@ -124,8 +117,7 @@ "type": ["integer", "null"] }, "pricing_model": { - "type": ["string", "null"], - "enum": ["flat_fee", "per_unit", "tiered", "volume", "stairstep"] + "type": ["string", "null"] }, "is_taxed": { "type": ["boolean", "null"] @@ -161,33 +153,22 @@ "type": ["string", "null"] }, "entity_type": { - "type": ["string", "null"], - "enum": [ - "adhoc", - "plan_item_price", - "addon_item_price", - "charge_item_price" - ] + "type": ["string", "null"] }, "tax_exempt_reason": { - "type": ["string", "null"], - "enum": [ - "tax_not_configured", - "region_non_taxable", - "export", - "customer_exempt", - "product_exempt", - "zero_rated", - "reverse_charge", - "high_value_physical_goods", - "zero_value_item" - ] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] }, "customer_id": { "type": ["string", "null"] + }, + "metered": { + "type": ["boolean", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -207,25 +188,19 @@ "type": ["string", "null"] }, "entity_type": { - "type": ["string", "null"], - "enum": [ - "item_level_coupon", - "document_level_coupon", - "promotional_credits", - "prorated_credits", - "item_level_discount", - "document_level_discount" - ] + "type": ["string", "null"] }, "discount_type": { - "type": ["string", "null"], - "enum": ["fixed_amount", "percentage"] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] }, "coupon_set_code": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -239,21 +214,16 @@ "type": ["string", "null"] }, "discount_type": { - "type": ["string", "null"], - "enum": [ - "item_level_coupon", - "document_level_coupon", - "promotional_credits", - "prorated_credits", - "item_level_discount", - "document_level_discount" - ] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] }, "discount_amount": { "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -302,17 +272,7 @@ "type": ["integer", "null"] }, "tax_juris_type": { - "type": ["string", "null"], - "enum": [ - "country", - "federal", - "state", - "county", - "city", - "special", - "unincorporated", - "other" - ] + "type": ["string", "null"] }, "tax_juris_name": { "type": ["string", "null"] @@ -368,63 +328,52 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { - "type": ["string", "null"], - "enum": ["not_validated", "valid", "partially_valid", "invalid"] + "type": ["string", "null"] }, "index": { "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } }, @@ -432,76 +381,57 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { - "type": ["string", "null"], - "enum": ["not_validated", "valid", "partially_valid", "invalid"] + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } }, + "object": { + "type": ["string", "null"] + }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote_line_group.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote_line_group.json index 588c38bd7d4d..b44249f63a04 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote_line_group.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/quote_line_group.json @@ -9,6 +9,9 @@ "id": { "type": ["string", "null"] }, + "quote_id": { + "type": ["string", "null"] + }, "sub_total": { "type": ["integer", "null"] }, @@ -25,15 +28,7 @@ "type": ["integer", "null"] }, "charge_event": { - "type": ["string", "null"], - "enum": [ - "immediate", - "subscription_creation", - "trial_start", - "subscription_change", - "subscription_renewal", - "subscription_cancel" - ] + "type": ["string", "null"] }, "billing_cycle_number": { "type": ["integer", "null"] @@ -65,8 +60,7 @@ "type": ["integer", "null"] }, "pricing_model": { - "type": ["string", "null"], - "enum": ["flat_fee", "per_unit", "tiered", "volume", "stairstep"] + "type": ["string", "null"] }, "is_taxed": { "type": ["boolean", "null"] @@ -102,33 +96,22 @@ "type": ["string", "null"] }, "entity_type": { - "type": ["string", "null"], - "enum": [ - "adhoc", - "plan_item_price", - "addon_item_price", - "charge_item_price" - ] + "type": ["string", "null"] }, "tax_exempt_reason": { - "type": ["string", "null"], - "enum": [ - "tax_not_configured", - "region_non_taxable", - "export", - "customer_exempt", - "product_exempt", - "zero_rated", - "reverse_charge", - "high_value_physical_goods", - "zero_value_item" - ] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] }, "customer_id": { "type": ["string", "null"] + }, + "metered": { + "type": ["boolean", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -148,25 +131,19 @@ "type": ["string", "null"] }, "entity_type": { - "type": ["string", "null"], - "enum": [ - "item_level_coupon", - "document_level_coupon", - "promotional_credits", - "prorated_credits", - "item_level_discount", - "document_level_discount" - ] + "type": ["string", "null"] }, "discount_type": { - "type": ["string", "null"], - "enum": ["fixed_amount", "percentage"] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] }, "coupon_set_code": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -180,21 +157,16 @@ "type": ["string", "null"] }, "discount_type": { - "type": ["string", "null"], - "enum": [ - "item_level_coupon", - "document_level_coupon", - "promotional_credits", - "prorated_credits", - "item_level_discount", - "document_level_discount" - ] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] }, "discount_amount": { "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -243,17 +215,7 @@ "type": ["integer", "null"] }, "tax_juris_type": { - "type": ["string", "null"], - "enum": [ - "country", - "federal", - "state", - "county", - "city", - "special", - "unincorporated", - "other" - ] + "type": ["string", "null"] }, "tax_juris_name": { "type": ["string", "null"] @@ -270,19 +232,11 @@ } } }, + "object": { + "type": ["string", "null"] + }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/shared/_definitions.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/shared/_definitions.json new file mode 100644 index 000000000000..0a1f15a6e1a1 --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/shared/_definitions.json @@ -0,0 +1,18 @@ +{ + "definitions": { + "custom_fields": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "name": { + "type": ["null", "string"] + }, + "value": { + "type": ["null", "string"] + } + } + } + } + } +} diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/site_migration_detail.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/site_migration_detail.json index 1482bdcc657b..557bb96391c9 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/site_migration_detail.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/site_migration_detail.json @@ -4,38 +4,28 @@ "type": "object", "properties": { "entity_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "other_site_name": { - "type": ["string", "null"], - "minLength": 4, - "maxLength": 100 + "type": ["string", "null"] }, "entity_id_at_other_site": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "migrated_at": { "type": ["integer", "null"] }, "entity_type": { - "type": ["string", "null"], - "enum": [ - "customer", - "subscription", - "invoice", - "credit_note", - "transaction", - "order" - ] + "type": ["string", "null"] }, "status": { - "type": ["string", "null"], - "enum": ["moved_in", "moved_out", "moving_out"] + "type": ["string", "null"] }, "object": { "type": ["string", "null"] + }, + "custom_fields": { + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/subscription.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/subscription.json index e41fb562b6f8..336b90019484 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/subscription.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/subscription.json @@ -4,12 +4,10 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "start_date": { "type": ["integer", "null"] @@ -18,24 +16,19 @@ "type": ["integer", "null"] }, "remaining_billing_cycles": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "po_number": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "plan_quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "plan_unit_price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -83,8 +76,7 @@ "type": ["string", "null"] }, "created_from_ip": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "resource_version": { "type": ["integer", "null"] @@ -99,16 +91,13 @@ "type": ["boolean", "null"] }, "payment_source_id": { - "type": ["string", "null"], - "maxLength": 40 + "type": ["string", "null"] }, "plan_free_quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "plan_amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "cancel_schedule_created_at": { "type": ["integer", "null"] @@ -120,23 +109,19 @@ "type": ["integer", "null"] }, "total_dues": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "mrr": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "exchange_rate": { "type": ["number", "null"] }, "base_currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "invoice_notes": { - "type": ["string", "null"], - "maxLength": 2000 + "type": ["string", "null"] }, "metadata": { "type": ["object", "null"], @@ -152,8 +137,7 @@ "type": ["string", "null"] }, "cancel_reason_code": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "free_period": { "type": ["integer", "null"] @@ -168,8 +152,7 @@ "type": ["boolean", "null"] }, "business_entity_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "channel": { "type": ["string", "null"] @@ -180,8 +163,7 @@ "type": ["object", "null"], "properties": { "coupon_id": { - "type": "string", - "maxLength": 50 + "type": "string" }, "apply_till": { "type": ["integer", "null"] @@ -190,8 +172,13 @@ "type": ["integer", "null"] }, "coupon_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] + }, + "applied_count": { + "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -200,56 +187,43 @@ "type": ["object", "null"], "properties": { "first_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "last_name": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "email": { - "type": ["string", "null"], - "maxLength": 70 + "type": ["string", "null"] }, "company": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "phone": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "line1": { - "type": ["string", "null"], - "maxLength": 180 + "type": ["string", "null"] }, "line2": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "line3": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "city": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "state": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "country": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "zip": { - "type": ["string", "null"], - "maxLength": 20 + "type": ["string", "null"] }, "validation_status": { "type": ["string", "null"] @@ -260,20 +234,16 @@ "type": ["object", "null"], "properties": { "referral_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "coupon_code": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "referral_id": { - "type": ["string", "null"], - "maxLength": 19 + "type": ["string", "null"] }, "external_reference_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "reward_status": { "type": ["string", "null"] @@ -282,16 +252,13 @@ "type": ["string", "null"] }, "account_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "campaign_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "external_campaign_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "friend_offer_type": { "type": ["string", "null"] @@ -303,8 +270,7 @@ "type": ["string", "null"] }, "destination_url": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "post_purchase_widget_enabled": { "type": ["boolean", "null"] @@ -315,8 +281,7 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -328,15 +293,13 @@ "type": ["integer", "null"] }, "billing_cycle": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "action_at_term_end": { "type": ["string", "null"] }, "total_contract_value": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "cancellation_cutoff_period": { "type": ["integer", "null"] @@ -345,12 +308,10 @@ "type": ["integer", "null"] }, "subscription_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "remaining_billing_cycles": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] } } }, @@ -360,55 +321,43 @@ "type": ["object", "null"], "properties": { "item_price_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "item_type": { "type": ["string", "null"] }, "quantity": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "unit_price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "unit_price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "free_quantity": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "free_quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "trial_end": { "type": ["integer", "null"] }, "billing_cycles": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "service_period_days": { - "type": ["integer", "null"], - "minimum": 0, - "maximum": 730 + "type": ["integer", "null"] }, "charge_on_event": { "type": ["string", "null"] @@ -418,6 +367,9 @@ }, "charge_on_option": { "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -428,31 +380,28 @@ "type": ["object", "null"], "properties": { "item_price_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "starting_unit": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "ending_unit": { "type": ["integer", "null"] }, "price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "starting_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "ending_unit_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] } } } @@ -463,34 +412,31 @@ "type": ["object", "null"], "properties": { "item_price_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "last_charged_at": { "type": ["integer", "null"] + }, + "object": { + "type": ["string", "null"] } } } }, "plan_id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "plan_quantity": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "plan_unit_price": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "setup_fee": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "billing_period": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "billing_period_unit": { "type": ["string", "null"] @@ -499,20 +445,16 @@ "type": ["string", "null"] }, "plan_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "plan_free_quantity": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "gift_id": { - "type": ["string", "null"], - "maxLength": 150 + "type": ["string", "null"] }, "affiliate_token": { - "type": ["string", "null"], - "maxLength": 250 + "type": ["string", "null"] }, "offline_payment_method": { "type": ["string", "null"] @@ -527,39 +469,31 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "quantity": { - "type": ["integer", "null"], - "minimum": 1 + "type": ["integer", "null"] }, "unit_price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "trial_end": { "type": ["integer", "null"] }, "remaining_billing_cycles": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "unit_price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "amount_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] } } } @@ -570,16 +504,13 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "quantity": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "unit_price": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "on_event": { "type": ["string", "null"] @@ -588,12 +519,10 @@ "type": ["boolean", "null"] }, "quantity_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] }, "unit_price_in_decimal": { - "type": ["string", "null"], - "maxLength": 33 + "type": ["string", "null"] } } } @@ -604,8 +533,7 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "last_charged_at": { "type": ["integer", "null"] @@ -625,8 +553,7 @@ "type": ["string", "null"] }, "type": { - "type": ["string", "null"], - "enum": ["fixed_amount", "percentage"] + "type": ["string", "null"] }, "percentage": { "type": ["number", "null"] @@ -638,22 +565,19 @@ "type": ["string", "null"] }, "duration_type": { - "type": ["string", "null"], - "enum": ["one_time", "forever", "limited_period"] + "type": ["string", "null"] }, "period": { "type": ["integer", "null"] }, "period_unit": { - "type": ["string", "null"], - "enum": ["day", "week", "month", "year"] + "type": ["string", "null"] }, "included_in_mrr": { "type": ["boolean", "null"] }, "apply_on": { - "type": ["string", "null"], - "enum": ["invoice_amount", "specific_item_price"] + "type": ["string", "null"] }, "item_price_id": { "type": ["string", "null"] @@ -677,18 +601,7 @@ } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json index 87662abdf5c9..3a54a5e2782c 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json @@ -4,31 +4,25 @@ "type": "object", "properties": { "id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "customer_id": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "subscription_id": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "gateway_account_id": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "payment_source_id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "payment_method": { "type": ["string", "null"] }, "refrence_number": { - "type": ["string", "null"], - "max-length": 100 + "type": ["string", "null"] }, "gateway": { "type": ["string", "null"] @@ -52,8 +46,7 @@ "type": ["integer", "null"] }, "id_at_gateway": { - "type": ["string", "null"], - "max-length": 100 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -64,19 +57,17 @@ "initiator_type": { "type": ["string", "null"] }, - "three_d_source": { + "three_d_secure": { "type": ["boolean", "null"] }, "authorization_reason": { "type": ["string", "null"] }, "error_code": { - "type": ["string", "null"], - "max-length": 100 + "type": ["string", "null"] }, "error-text": { - "type": ["string", "null"], - "max-length": 65000 + "type": ["string", "null"] }, "voided_at": { "type": ["integer", "null"] @@ -88,71 +79,58 @@ "type": ["integer", "null"] }, "fraud_reason": { - "type": ["string", "null"], - "max-length": 250 + "type": ["string", "null"] }, "amount_unused": { "type": ["integer", "null"] }, "masked_card_number": { - "type": ["string", "null"], - "max-length": 20 + "type": ["string", "null"] }, "reference_transaction_id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "refunded_txn_id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "reference_authorization_id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "amount_capturable": { "type": ["integer", "null"] }, "reversal_transaction_id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "deleted": { "type": ["boolean", "null"] }, "iin": { - "type": ["string", "null"], - "max-length": 6 + "type": ["string", "null"] }, "last4": { - "type": ["string", "null"], - "max-length": 4 + "type": ["string", "null"] }, "merchant_reference_id": { - "type": ["string", "null"], - "max-length": 500 + "type": ["string", "null"] }, "base_currency_code": { - "type": ["string", "null"], - "maxLength": 3 + "type": ["string", "null"] }, "business_entity_id": { - "type": ["string", "null"], - "maxLength": 50 + "type": ["string", "null"] }, "object": { "type": ["string", "null"] }, "error_text": { - "type": ["string", "null"], - "maxLength": 65000 + "type": ["string", "null"] }, "payment_method_details": { "type": ["string", "null"] }, "reference_number": { - "type": ["string", "null"], - "maxLength": 100 + "type": ["string", "null"] }, "linked_invoices": { "type": ["array", "null"], @@ -160,8 +138,7 @@ "type": ["object", "null"], "properties": { "invoice_id": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "applied_amount": { "type": ["integer", "null"] @@ -187,8 +164,7 @@ "type": ["object", "null"], "properties": { "cn_id": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "applied_amount": { "type": ["integer", "null"] @@ -203,8 +179,7 @@ } }, "cn_create_reason_code": { - "type": ["string", "null"], - "max-length": 100 + "type": ["string", "null"] }, "cn_date": { "type": ["integer", "null"] @@ -216,8 +191,7 @@ "type": ["string", "null"] }, "cn_reference_invoice_id": { - "type": ["string", "null"], - "max-length": 50 + "type": ["string", "null"] }, "linked_refunds": { "type": ["array", "null"], @@ -225,8 +199,7 @@ "type": ["object", "null"], "properties": { "txn_id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "txn_status": { "type": ["string", "null"] @@ -246,8 +219,7 @@ "type": ["object", "null"], "properties": { "id": { - "type": ["string", "null"], - "max-length": 40 + "type": ["string", "null"] }, "status": { "type": ["string", "null"] @@ -256,18 +228,7 @@ } }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/unbilled_charge.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/unbilled_charge.json index 37c94c393aab..0a7a91e47e34 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/unbilled_charge.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/unbilled_charge.json @@ -22,8 +22,7 @@ "type": ["integer", "null"] }, "pricing_model": { - "type": ["string", "null"], - "enum": ["flat_fee", "per_unit", "tiered", "volume", "stairstep"] + "type": ["string", "null"] }, "quantity": { "type": ["integer", "null"] @@ -41,13 +40,7 @@ "type": ["string", "null"] }, "entity_type": { - "type": ["string", "null"], - "enum": [ - "adhoc", - "plan_item_price", - "addon_item_price", - "charge_item_price" - ] + "type": ["string", "null"] }, "entity_id": { "type": ["string", "null"] @@ -105,19 +98,11 @@ } } }, + "object": { + "type": ["string", "null"] + }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/virtual_bank_account.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/virtual_bank_account.json index daaa14b122fa..af2570f8ebb2 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/virtual_bank_account.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/virtual_bank_account.json @@ -13,8 +13,7 @@ "type": ["string", "null"] }, "scheme": { - "type": ["string", "null"], - "enum": ["ach_credit", "sepa_credit"] + "type": ["string", "null"] }, "bank_name": { "type": ["string", "null"] @@ -29,54 +28,7 @@ "type": ["string", "null"] }, "gateway": { - "type": ["string", "null"], - "enum": [ - "chargebee", - "chargebee_payments", - "stripe", - "wepay", - "braintree", - "authorize_net", - "paypal_pro", - "pin", - "eway", - "eway_rapid", - "worldpay", - "balanced_payments", - "beanstream", - "bluepay", - "elavon", - "first_data_global", - "hdfc", - "migs", - "nmi", - "ogone", - "paymill", - "paypal_payflow_pro", - "sage_pay", - "tco", - "wirecard", - "amazon_payments", - "paypal_express_checkout", - "gocardless", - "adyen", - "orbital", - "moneris_us", - "moneris", - "bluesnap", - "cybersource", - "vantiv", - "checkout_com", - "paypal", - "ingenico_direct", - "exact", - "mollie", - "quickbooks", - "razorpay", - "global_payments", - "bank_of_america", - "not_applicable" - ] + "type": ["string", "null"] }, "resource_version": { "type": ["integer", "null"] @@ -94,18 +46,7 @@ "type": ["boolean", "null"] }, "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "name": { - "type": ["null", "string"] - }, - "value": { - "type": ["null", "string"] - } - } - } + "$ref": "_definitions.json#/definitions/custom_fields" } } } diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/spec.yaml b/airbyte-integrations/connectors/source-chargebee/source_chargebee/spec.yaml index 0f8e20d15d36..34e151cf6c6c 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/spec.yaml +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/spec.yaml @@ -7,7 +7,6 @@ connectionSpecification: - site - site_api_key - start_date - - product_catalog additionalProperties: true properties: site_api_key: @@ -27,7 +26,7 @@ connectionSpecification: type: string format: date-time title: Start Date - description: UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. + description: UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated. pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ examples: - "2021-01-25T00:00:00Z" @@ -35,6 +34,7 @@ connectionSpecification: product_catalog: type: string title: Product Catalog - description: Product Catalog version of your Chargebee site. Instructions on how to find your version you may find here under `API Version` section. + description: Product Catalog version of your Chargebee site. Instructions on how to find your version you may find here under `API Version` section. If left blank, the product catalog version will be set to 2.0. enum: ["1.0", "2.0"] + default: "2.0" order: 3 diff --git a/airbyte-integrations/connectors/source-chargebee/unit_tests/test_component.py b/airbyte-integrations/connectors/source-chargebee/unit_tests/test_component.py index dcca547a7d16..2d7752d6dabf 100644 --- a/airbyte-integrations/connectors/source-chargebee/unit_tests/test_component.py +++ b/airbyte-integrations/connectors/source-chargebee/unit_tests/test_component.py @@ -2,8 +2,10 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # +from typing import Any, MutableMapping + import pytest -from source_chargebee.components import CustomFieldTransformation +from source_chargebee.components import CustomFieldTransformation, IncrementalSingleSliceCursor @pytest.mark.parametrize( @@ -27,3 +29,59 @@ def test_field_transformation(record, expected_record): transformer = CustomFieldTransformation() transformed_record = transformer.transform(record) assert transformed_record == expected_record + +def test_slicer(): + date_time_dict = {"updated_at": 1662459010} + slicer = IncrementalSingleSliceCursor(config={}, parameters={}, cursor_field="updated_at") + slicer.close_slice(date_time_dict, date_time_dict) + assert slicer.get_stream_state() == date_time_dict + assert slicer.get_request_headers() == {} + assert slicer.get_request_body_data() == {} + assert slicer.get_request_params() == {} + assert slicer.get_request_body_json() == {} + +@pytest.mark.parametrize( + "first_record, second_record, expected", + [ + ({"pk": 1, "name": "example", "updated_at": 1662459010}, + {"pk": 2, "name": "example2", "updated_at": 1662460000}, + True), + ({"pk": 1, "name": "example", "updated_at": 1662459010}, + {"pk": 2, "name": "example2", "updated_at": 1662440000}, + False), + ({"pk": 1, "name": "example", "updated_at": 1662459010}, + {"pk": 2, "name": "example2"}, + False), + ({"pk": 1, "name": "example"}, + {"pk": 2, "name": "example2", "updated_at": 1662459010}, + True), + ] +) +def test_is_greater_than_or_equal(first_record, second_record, expected): + slicer = IncrementalSingleSliceCursor(config={}, parameters={}, cursor_field="updated_at") + assert slicer.is_greater_than_or_equal(second_record, first_record) == expected + +def test_set_initial_state(): + cursor_field = "updated_at" + cursor_value = 999999999 + slicer = IncrementalSingleSliceCursor(config={}, parameters={}, cursor_field=cursor_field) + slicer.set_initial_state(stream_state={cursor_field: cursor_value}) + assert slicer._state[cursor_field] == cursor_value + +@pytest.mark.parametrize( + "record, expected", + [ + ({"pk": 1, "name": "example", "updated_at": 1662459010}, + True), + ] +) +def test_should_be_synced(record, expected): + cursor_field = "updated_at" + slicer = IncrementalSingleSliceCursor(config={}, parameters={}, cursor_field=cursor_field) + assert slicer.should_be_synced(record) == expected + +def test_stream_slices(): + slicer = IncrementalSingleSliceCursor(config={}, parameters={}, cursor_field="updated_at") + stream_slices_instance = slicer.stream_slices() + actual = next(stream_slices_instance) + assert actual == {} \ No newline at end of file diff --git a/airbyte-integrations/connectors/source-chargebee/unit_tests/test_source.py b/airbyte-integrations/connectors/source-chargebee/unit_tests/test_source.py new file mode 100644 index 000000000000..62feab67ad1d --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/unit_tests/test_source.py @@ -0,0 +1,9 @@ +# +# Copyright (c) 2024 Airbyte, Inc., all rights reserved. +# + +from source_chargebee import SourceChargebee + + +def test_source(): + assert SourceChargebee() \ No newline at end of file diff --git a/docs/integrations/sources/chargebee.md b/docs/integrations/sources/chargebee.md index e21039eefba5..27b6568ef850 100644 --- a/docs/integrations/sources/chargebee.md +++ b/docs/integrations/sources/chargebee.md @@ -1,10 +1,16 @@ # Chargebee + + This page contains the setup guide and reference information for the Chargebee source connector. + + ## Prerequisites -To set up the Chargebee source connector, you will need a valid [Chargebee API key](https://apidocs.chargebee.com/docs/api?prod_cat_ver=2#api_authentication) and the [Product Catalog version](https://www.chargebee.com/docs/1.0/upgrade-product-catalog.html) of the Chargebee site you are syncing data from. +To set up the Chargebee source connector, you will need: + - [Chargebee API key](https://apidocs.chargebee.com/docs/api/auth) + - [Product Catalog version](https://www.chargebee.com/docs/1.0/upgrade-product-catalog.html) of the Chargebee site you are syncing. :::info All Chargebee sites created from May 5, 2021 onward will have [Product Catalog 2.0](https://www.chargebee.com/docs/2.0/product-catalog.html) enabled by default. Sites created prior to this date will use [Product Catalog 1.0](https://www.chargebee.com/docs/1.0/product-catalog.html). @@ -19,9 +25,11 @@ All Chargebee sites created from May 5, 2021 onward will have [Product Catalog 2 5. For **Site**, enter the site prefix for your Chargebee instance. 6. For **Start Date**, enter the date in YYYY-MM-DDTHH:mm:ssZ format. The data added on and after this date will be replicated. 7. For **API Key**, enter the [Chargebee API key](https://apidocs.chargebee.com/docs/api?prod_cat_ver=2#api_authentication). -8. For **Product Catalog**, enter the Chargebee [Product Catalog version](https://apidocs.chargebee.com/docs/api?prod_cat_ver=2). +8. For **Product Catalog**, enter the Chargebee [Product Catalog version](https://apidocs.chargebee.com/docs/api?prod_cat_ver=2). Connector defaults to Product Catalog 2.0 unless otherwise specified. 9. Click **Set up source**. + + ## Supported sync modes The Chargebee source connector supports the following [sync modes](https://docs.airbyte.com/cloud/core-concepts#connection-sync-modes): @@ -29,6 +37,7 @@ The Chargebee source connector supports the following [sync modes](https://docs. * [Full Refresh - Overwrite](https://docs.airbyte.com/understanding-airbyte/connections/full-refresh-overwrite/) * [Full Refresh - Append](https://docs.airbyte.com/understanding-airbyte/connections/full-refresh-append) * [Incremental - Append](https://docs.airbyte.com/understanding-airbyte/connections/incremental-append) +* [Incremental - Append + Deduped](https://docs.airbyte.com/understanding-airbyte/connections/incremental-append-deduped) ## Supported streams @@ -67,16 +76,32 @@ Most streams are supported regardless of your Chargebee site's [Product Catalog When using incremental sync mode, the `Attached Items` stream behaves differently than the other streams. Whereas other incremental streams read and output _only new_ records, the `Attached Items` stream reads _all_ records but only outputs _new_ records, making it more demanding on your Chargebee API quota. Each sync incurs API calls equal to the total number of attached items in your Chargebee instance divided by 100, regardless of the actual number of `Attached Items` changed or synced. ::: -## Performance considerations +## Limitations & Troubleshooting + +
+ +Expand to see details about the Chargebee connector limitations and troubleshooting. + + +### Connector limitations + +#### Rate limiting The Chargebee connector should not run into [Chargebee API](https://apidocs.chargebee.com/docs/api?prod_cat_ver=2#api_rate_limits) limitations under normal usage. [Create an issue](https://github.com/airbytehq/airbyte/issues) if you encounter any rate limit issues that are not automatically retried successfully. +### Troubleshooting + +* Check out common troubleshooting issues for the Instagram source connector on our [Airbyte Forum](https://github.com/airbytehq/airbyte/discussions). + +
+ ## Changelog | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- | -| 0.3.1 | 2024-02-12 | [35169](https://github.com/airbytehq/airbyte/pull/35169) | Manage dependencies with Poetry. | -| 0.3.0 | 2023-12-26 | [33696](https://github.com/airbytehq/airbyte/pull/33696) | Add new stream, add fields to existing streams | +| 0.4.0 | 2024-02-12 | [34053](https://github.com/airbytehq/airbyte/pull/34053) | Add missing fields to and cleans up schemas, adds incremental support for `gift`, `site_migration_detail`, and `unbilled_charge` streams.` | +| 0.3.1 | 2024-02-12 | [35169](https://github.com/airbytehq/airbyte/pull/35169) | Manage dependencies with Poetry. | +| 0.3.0 | 2023-12-26 | [33696](https://github.com/airbytehq/airbyte/pull/33696) | Add new stream, add fields to existing streams | | 0.2.6 | 2023-12-19 | [32100](https://github.com/airbytehq/airbyte/pull/32100) | Add new fields in streams | | 0.2.5 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image | | 0.2.4 | 2023-08-01 | [28905](https://github.com/airbytehq/airbyte/pull/28905) | Updated the connector to use latest CDK version | @@ -101,3 +126,5 @@ The Chargebee connector should not run into [Chargebee API](https://apidocs.char | 0.1.2 | 2021-07-30 | [5067](https://github.com/airbytehq/airbyte/pull/5067) | Prepare connector for publishing | | 0.1.1 | 2021-07-07 | [4539](https://github.com/airbytehq/airbyte/pull/4539) | Add entrypoint and bump version for connector | | 0.1.0 | 2021-06-30 | [3410](https://github.com/airbytehq/airbyte/pull/3410) | New Source: Chargebee | + +