diff --git a/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml b/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml index 095e361ba8ed..4a52973f0937 100644 --- a/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-chargebee/acceptance-test-config.yml @@ -23,25 +23,23 @@ acceptance_tests: timeout_seconds: 1200 empty_streams: - name: "addon" - bypass_reason: "Not permitted for this site" + bypass_reason: "Not available for Product Catalog 2.0 sites." - name: "plan" - bypass_reason: "Not permitted for this site" + bypass_reason: "Not available for Product Catalog 2.0 sites." - name: "virtual_bank_account" bypass_reason: "Cannot populate with test data" - - name: "subscription" - bypass_reason: "Unstable data. Field current_term_start updated daily" - - name: "customer" - bypass_reason: "Unstable data. Depends on subscription" - - name: "invoice" - bypass_reason: "Unstable data. Depends on subscription" - - name: "credit_note" - bypass_reason: "Unstable data. Depends on subscription" - - name: "event" - bypass_reason: "Unstable data. Depends on subscription" - 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." + - name: "site_migration_detail" + bypass_reason: "Cannnot populate with test data." + ignored_fields: + subscription: + - name: "current_term_start" + bypass_reason: "Field updated daily." expect_records: path: "integration_tests/expected_records.jsonl" extra_fields: no @@ -49,22 +47,19 @@ acceptance_tests: extra_records: yes fail_on_extra_columns: false incremental: - # tests: - # - config_path: "secrets/config.json" - # timeout_seconds: 2400 - # configured_catalog_path: "integration_tests/configured_catalog.json" - # 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" - bypass_reason: > - "Incrremental tests are disabled until CAT works with cursor data-types directly, - relatated slack thread: https://airbyte-globallogic.slack.com/archives/C02U9R3AF37/p1690810513681859" + tests: + - config_path: "secrets/config.json" + timeout_seconds: 2400 + configured_catalog_path: "integration_tests/configured_catalog.json" + 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" 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 950c314639f2..b2ae2de6b192 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/configured_catalog.json @@ -243,6 +243,58 @@ }, "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"] + }, + { + "stream": { + "name": "comment", + "json_schema": {}, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created_at"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "append", + "cursor_field": ["created_at"] + }, + { + "stream": { + "name": "item_family", + "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": "differential_price", + "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"] } ] } 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 7b576e82ab94..9007c7adbdf3 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl @@ -31,3 +31,23 @@ {"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": "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} 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 b7226a840311..32c87ffe2c6d 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/future_state.json +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/future_state.json @@ -110,5 +110,33 @@ "stream_state": { "updated_at": 2147483647 }, "stream_descriptor": { "name": "transaction" } } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "migrated_at": 2147483647 }, + "stream_descriptor": { "name": "site_migration_detail" } + } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "created_at": 2147483647 }, + "stream_descriptor": { "name": "comment" } + } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "updated_at": 2147483647 }, + "stream_descriptor": { "name": "item_family" } + } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "updated_at": 2147483647 }, + "stream_descriptor": { "name": "differential_price" } + } } ] diff --git a/airbyte-integrations/connectors/source-chargebee/integration_tests/sample_state.json b/airbyte-integrations/connectors/source-chargebee/integration_tests/sample_state.json index 468a1e167331..f8a43e7e1d9a 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/sample_state.json +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/sample_state.json @@ -110,5 +110,33 @@ "stream_state": { "updated_at": 1625596058 }, "stream_descriptor": { "name": "transaction" } } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "migrated_at": 1625596058 }, + "stream_descriptor": { "name": "site_migration_detail" } + } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "created_at": 1625596058 }, + "stream_descriptor": { "name": "comment" } + } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "updated_at": 1625596058 }, + "stream_descriptor": { "name": "item_family" } + } + }, + { + "type": "STREAM", + "stream": { + "stream_state": { "updated_at": 1625596058 }, + "stream_descriptor": { "name": "differential_price" } + } } ] diff --git a/airbyte-integrations/connectors/source-chargebee/metadata.yaml b/airbyte-integrations/connectors/source-chargebee/metadata.yaml index bbb381f20ae3..9fa19f17b91f 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.2.6 + dockerImageTag: 0.3.0 dockerRepository: airbyte/source-chargebee documentationUrl: https://docs.airbyte.com/integrations/sources/chargebee githubIssueLabel: source-chargebee diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml b/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml index 5bfaee7de614..c47fa6d7dd11 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/manifest.yaml @@ -315,6 +315,54 @@ definitions: 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" + $parameters: + name: "site_migration_detail" + primary_key: "entity_id" + path: "/site_migration_details" + stream_cursor_field: "migrated_at" + comment_stream: + $ref: "#/definitions/base_stream" + retriever: + $ref: "#/definitions/retriever" + requester: + $ref: "#/definitions/retriever/requester" + request_parameters: + sort_by[asc]: created_at + include_deleted: "true" + created_at[between]: "'[{{stream_slice['start_time']}}, {{stream_slice['end_time']}}]'" + incremental_sync: + $ref: "#/definitions/date_stream_slicer" + $parameters: + name: "comment" + primary_key: "id" + path: "/comments" + stream_cursor_field: "created_at" + item_family_stream: + $ref: "#/definitions/base_incremental_stream" + $parameters: + name: "item_family" + primary_key: "id" + path: "/item_families" + stream_cursor_field: "updated_at" + differential_price_stream: + $ref: "#/definitions/base_incremental_stream" + $parameters: + name: "differential_price" + primary_key: "id" + path: "/differential_prices" + stream_cursor_field: "updated_at" streams: - "#/definitions/addon_stream" @@ -339,6 +387,10 @@ streams: - "#/definitions/virtual_bank_account_stream" - "#/definitions/quote_stream" - "#/definitions/quote_line_group_stream" + - "#/definitions/site_migration_detail_stream" + - "#/definitions/comment_stream" + - "#/definitions/item_family_stream" + - "#/definitions/differential_price_stream" check: stream_names: diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json new file mode 100644 index 000000000000..1f5d920c7399 --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/comment.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "name": "Comment", + "type": "object", + "properties": { + "id": { + "type": ["string", "null"] + }, + "entity_type": { + "type": ["string", "null"] + }, + "added_by": { + "type": ["string", "null"] + }, + "notes": { + "type": ["string", "null"] + }, + "created_at": { + "type": ["integer", "null"] + }, + "type": { + "type": ["string", "null"] + }, + "entity_id": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + }, + "custom_fields": { + "type": ["array", "null"] + } + } +} 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 new file mode 100644 index 000000000000..5087f9f9bc99 --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/differential_price.json @@ -0,0 +1,77 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "name": "Add-on", + "type": "object", + "properties": { + "id": { + "type": ["string", "null"] + }, + "item_price_id": { + "type": ["string", "null"] + }, + "parent_item_id": { + "type": ["string", "null"] + }, + "price": { + "type": ["integer", "null"] + }, + "price_in_decimal": { + "type": ["string", "null"] + }, + "status": { + "type": ["string", "null"] + }, + "resource_version": { + "type": ["integer", "null"] + }, + "updated_at": { + "type": ["integer", "null"] + }, + "created_at": { + "type": ["integer", "null"] + }, + "modified_at": { + "type": ["integer", "null"] + }, + "currency_code": { + "type": ["string", "null"] + }, + "tiers": { + "type": ["array", "null"], + "items": { + "type": "object", + "properties": { + "starting_unit": { + "type": ["integer", "null"] + }, + "ending_unit": { + "type": ["integer", "null"] + }, + "price": { + "type": ["integer", "null"] + } + } + } + }, + "parent_periods": { + "type": ["array", "null"], + "items": { + "type": "object", + "properties": { + "period_unit": { + "type": ["string", "null"] + }, + "period": { + "type": ["array", "null"], + "items": { + "type": ["integer", "null"] + } + } + } + } + }, + "object": { + "type": ["string", "null"] + } + } +} 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 810fae1582d8..8c8bad1b3561 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "name": "Invoice", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": ["string", "null"], @@ -15,9 +16,6 @@ "type": ["string", "null"], "maxLength": 50 }, - "business_entity_id": { - "type": ["string", "null"] - }, "subscription_id": { "type": ["string", "null"], "maxLength": 50 @@ -112,6 +110,9 @@ "type": ["integer", "null"], "minimum": 0 }, + "local_currency_exchange_rate": { + "type": ["number", "null"] + }, "first_invoice": { "type": ["boolean", "null"] }, @@ -139,8 +140,7 @@ "minimum": 0 }, "round_off_amount": { - "type": ["integer", "null"], - "minimum": 0 + "type": ["integer", "null"] }, "payment_owner": { "type": ["string", "null"] @@ -152,19 +152,25 @@ "deleted": { "type": ["boolean", "null"] }, - "base_currency_code": { + "tax_category": { + "type": ["string", "null"] + }, + "vat_number_prefix": { "type": ["string", "null"], - "maxLength": 3 + "maxLength": 10 }, "channel": { "type": ["string", "null"] }, - "object": { + "business_entity_id": { "type": ["string", "null"] }, - "vat_number_prefix": { + "base_currency_code": { "type": ["string", "null"], - "maxLength": 10 + "maxLength": 3 + }, + "object": { + "type": ["string", "null"] }, "line_items": { "type": ["array", "null"], @@ -211,15 +217,15 @@ }, "unit_amount_in_decimal": { "type": ["string", "null"], - "maxLength": 33 + "maxLength": 39 }, "quantity_in_decimal": { "type": ["string", "null"], - "maxLength": 33 + "maxLength": 39 }, "amount_in_decimal": { "type": ["string", "null"], - "maxLength": 33 + "maxLength": 39 }, "discount_amount": { "type": ["integer", "null"], @@ -250,6 +256,9 @@ "customer_id": { "type": ["string", "null"], "maxLength": 100 + }, + "metered": { + "type": ["boolean", "null"] } } } @@ -273,6 +282,10 @@ "entity_id": { "type": ["string", "null"], "maxLength": 100 + }, + "coupon_set_code": { + "type": ["string", "null"], + "maxLength": 50 } } } @@ -336,6 +349,15 @@ "tax_rate": { "type": ["number", "null"] }, + "date_to": { + "type": ["integer", "null"] + }, + "date_from": { + "type": ["integer", "null"] + }, + "prorated_taxable_amount": { + "type": ["number", "null"] + }, "is_partial_tax_applied": { "type": ["boolean", "null"] }, @@ -365,7 +387,7 @@ "type": ["integer", "null"], "minimum": 0 }, - "local_currency-code": { + "local_currency_code": { "type": ["string", "null"] } } @@ -677,6 +699,23 @@ } } }, + "statement_descriptor": { + "type": ["object", "null"], + "properties": { + "id": { + "type": ["string", "null"], + "maxLength": 40 + }, + "descriptor": { + "type": ["string", "null"], + "maxLength": 65000 + }, + "additional_info": { + "type": ["string", "null"], + "maxLength": 65000 + } + } + }, "billing_address": { "type": ["object", "null"], "properties": { @@ -737,6 +776,53 @@ } } }, + "einvoice": { + "type": ["object", "null"], + "properties": { + "id": { + "type": ["string", "null"], + "maxLength": 50 + }, + "reference_number": { + "type": ["string", "null"], + "maxLength": 100 + }, + "status": { + "type": ["string", "null"] + }, + "message": { + "type": ["string", "null"], + "maxLength": 2500 + } + } + }, + "linked_taxes_withheld": { + "type": ["array", "null"], + "items": { + "type": ["object", "null"], + "properties": { + "id": { + "type": ["string", "null"], + "maxLength": 40 + }, + "amount": { + "type": ["integer", "null"], + "minimum": 1 + }, + "description": { + "type": ["string", "null"], + "maxLength": 65000 + }, + "date": { + "type": ["integer", "null"] + }, + "reference_number": { + "type": ["string", "null"], + "maxLength": 100 + } + } + } + }, "custom_fields": { "type": ["null", "array"], "items": { 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 new file mode 100644 index 000000000000..e1e096e70d9c --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item_family.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "name": "Item Families", + "type": "object", + "properties": { + "id": { + "type": ["string", "null"] + }, + "name": { + "type": ["string", "null"] + }, + "description": { + "type": ["string", "null"] + }, + "status": { + "type": ["string", "null"] + }, + "resource_version": { + "type": ["integer", "null"] + }, + "updated_at": { + "type": ["integer", "null"] + }, + "channel": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + }, + "custom_fields": { + "type": ["array", "null"] + } + } +} 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 new file mode 100644 index 000000000000..1482bdcc657b --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/site_migration_detail.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "name": "Site Migration Detail", + "type": "object", + "properties": { + "entity_id": { + "type": ["string", "null"], + "maxLength": 100 + }, + "other_site_name": { + "type": ["string", "null"], + "minLength": 4, + "maxLength": 100 + }, + "entity_id_at_other_site": { + "type": ["string", "null"], + "maxLength": 100 + }, + "migrated_at": { + "type": ["integer", "null"] + }, + "entity_type": { + "type": ["string", "null"], + "enum": [ + "customer", + "subscription", + "invoice", + "credit_note", + "transaction", + "order" + ] + }, + "status": { + "type": ["string", "null"], + "enum": ["moved_in", "moved_out", "moving_out"] + }, + "object": { + "type": ["string", "null"] + } + } +} diff --git a/docs/integrations/sources/chargebee.md b/docs/integrations/sources/chargebee.md index cea8389b8c92..3bce7a464f78 100644 --- a/docs/integrations/sources/chargebee.md +++ b/docs/integrations/sources/chargebee.md @@ -38,22 +38,26 @@ Most streams are supported regardless of your Chargebee site's [Product Catalog | ------------------------------------------------------------------------------------------------------ | ------------------- | ------------------- | | [Addons](https://apidocs.chargebee.com/docs/api/addons?prod_cat_ver=1) | ✔ | | | [Attached Items](https://apidocs.chargebee.com/docs/api/attached_items?prod_cat_ver=2) | | ✔ | +| [Comments](https://apidocs.chargebee.com/docs/api/comments?prod_cat_ver=2) | ✔ | ✔ | | [Contacts](https://apidocs.chargebee.com/docs/api/customers?lang=curl#list_of_contacts_for_a_customer) | ✔ | ✔ | | [Coupons](https://apidocs.chargebee.com/docs/api/coupons) | ✔ | ✔ | | [Credit Notes](https://apidocs.chargebee.com/docs/api/credit_notes) | ✔ | ✔ | | [Customers](https://apidocs.chargebee.com/docs/api/customers) | ✔ | ✔ | +| [Differential Prices](https://apidocs.chargebee.com/docs/api/differential_prices) | ✔ | ✔ | | [Events](https://apidocs.chargebee.com/docs/api/events) | ✔ | ✔ | | [Gifts](https://apidocs.chargebee.com/docs/api/gifts) | ✔ | ✔ | | [Hosted Pages](https://apidocs.chargebee.com/docs/api/hosted_pages) | ✔ | ✔ | | [Invoices](https://apidocs.chargebee.com/docs/api/invoices) | ✔ | ✔ | | [Items](https://apidocs.chargebee.com/docs/api/items?prod_cat_ver=2) | | ✔ | | [Item Prices](https://apidocs.chargebee.com/docs/api/item_prices?prod_cat_ver=2) | | ✔ | +| [Item Families](https://apidocs.chargebee.com/docs/api/item_families?prod_cat_ver=2) | | ✔ | | [Orders](https://apidocs.chargebee.com/docs/api/orders) | ✔ | ✔ | | [Payment Sources](https://apidocs.chargebee.com/docs/api/payment_sources) | ✔ | ✔ | | [Plans](https://apidocs.chargebee.com/docs/api/plans?prod_cat_ver=1) | ✔ | | | [Promotional Credits](https://apidocs.chargebee.com/docs/api/promotional_credits) | ✔ | ✔ | | [Quotes](https://apidocs.chargebee.com/docs/api/quotes) | ✔ | ✔ | | [Quote Line Groups](https://apidocs.chargebee.com/docs/api/quote_line_groups) | ✔ | ✔ | +| [Site Migration Details](https://apidocs.chargebee.com/docs/api/site_migration_details) | ✔ | ✔ | | [Subscriptions](https://apidocs.chargebee.com/docs/api/subscriptions) | ✔ | ✔ | | [Transactions](https://apidocs.chargebee.com/docs/api/transactions) | ✔ | ✔ | | [Unbilled Charges](https://apidocs.chargebee.com/docs/api/unbilled_charges) | ✔ | ✔ | @@ -71,6 +75,7 @@ The Chargebee connector should not run into [Chargebee API](https://apidocs.char | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- | +| 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 |