From 2ee3b49a288d91494396070fb02c4580dea0d99e Mon Sep 17 00:00:00 2001 From: Patrick Nilan Date: Wed, 20 Dec 2023 09:52:40 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Source=20Chargebee:=20add=20new=20f?= =?UTF-8?q?ields=20in=20streams=20(#33661)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: KimPlv --- .../integration_tests/expected_records.jsonl | 6 +- .../connectors/source-chargebee/metadata.yaml | 2 +- .../source_chargebee/schemas/addon.json | 9 +++ .../source_chargebee/schemas/coupon.json | 3 + .../source_chargebee/schemas/credit_note.json | 24 ++++++++ .../source_chargebee/schemas/customer.json | 11 +++- .../source_chargebee/schemas/event.json | 3 + .../source_chargebee/schemas/invoice.json | 15 ++++- .../source_chargebee/schemas/item.json | 4 ++ .../source_chargebee/schemas/order.json | 17 +++++- .../schemas/payment_source.json | 3 + .../source_chargebee/schemas/plan.json | 9 +++ .../schemas/promotional_credit.json | 3 + .../schemas/subscription.json | 9 ++- .../source_chargebee/schemas/transaction.json | 22 ++++++++ docs/integrations/sources/chargebee.md | 55 ++++++++++--------- 16 files changed, 157 insertions(+), 38 deletions(-) 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 fd515d457d6c6..7b576e82ab949 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl @@ -1,9 +1,9 @@ {"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":"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,"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":1677235847508} -{"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,"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":1677235847512} -{"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,"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":1677235847517} +{"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} diff --git a/airbyte-integrations/connectors/source-chargebee/metadata.yaml b/airbyte-integrations/connectors/source-chargebee/metadata.yaml index 854035925e399..bbb381f20ae31 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.5 + dockerImageTag: 0.2.6 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/schemas/addon.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json index b92355f36862e..0564ea8a61724 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/addon.json @@ -138,6 +138,15 @@ "show_description_in_quotes": { "type": ["boolean", "null"] }, + "channel": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + }, + "type": { + "type": ["string", "null"] + }, "tiers": { "type": ["array", "null"], "items": { 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 f6d484b980a1a..4fbd0682d34bf 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/coupon.json @@ -74,6 +74,9 @@ "type": ["string", "null"], "max-length": 2000 }, + "object": { + "type": ["string", "null"] + }, "item_constraints": { "type": ["array", "null"], "items": { 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 3e34966972636..5bcc57427ca01 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 @@ -106,6 +106,30 @@ "type": ["string", "null"], "maxLength": 10 }, + "base_currency_code": { + "type": ["string", "null"], + "maxLength": 3 + }, + "business_entity_id": { + "type": ["string", "null"], + "maxLength": 50 + }, + "channel": { + "type": ["string", "null"] + }, + "exchange_rate": { + "type": ["number", "null"] + }, + "is_digital": { + "type": ["boolean", "null"] + }, + "object": { + "type": ["string", "null"] + }, + "is_vat_moss_registered": { + "type": ["boolean", "null"], + "$comment": "Only available for accounts which have enabled taxes for EU Region for taxes." + }, "line_items": { "type": ["array", "null"], "items": { 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 61f02e49f104f..0d142b9906448 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/customer.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/customer.json @@ -165,6 +165,16 @@ "type": ["string", "null"], "maxLength": 10 }, + "business_entity_id": { + "type": ["string", "null"], + "maxLength": 50 + }, + "channel": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + }, "billing_address": { "type": ["object", "null"], "properties": { @@ -413,7 +423,6 @@ "card_status": { "type": ["string", "null"] }, - "meta_data": { "type": ["object", "null"], "properties": {} 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 f76bd77e47998..98fe0b6fdc133 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/event.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/event.json @@ -29,6 +29,9 @@ "content": { "type": ["object", "null"] }, + "object": { + "type": ["string", "null"] + }, "webhooks": { "type": ["array", "null"], "items": { 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 a3815605c08c4..810fae1582d89 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/invoice.json @@ -15,6 +15,9 @@ "type": ["string", "null"], "maxLength": 50 }, + "business_entity_id": { + "type": ["string", "null"] + }, "subscription_id": { "type": ["string", "null"], "maxLength": 50 @@ -142,7 +145,6 @@ "payment_owner": { "type": ["string", "null"] }, - "void_reason_code": { "type": ["string", "null"], "maxLength": 100 @@ -150,6 +152,16 @@ "deleted": { "type": ["boolean", "null"] }, + "base_currency_code": { + "type": ["string", "null"], + "maxLength": 3 + }, + "channel": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + }, "vat_number_prefix": { "type": ["string", "null"], "maxLength": 10 @@ -281,7 +293,6 @@ "type": ["integer", "null"], "minimum": 0 }, - "entity_id": { "type": ["string", "null"], "maxLength": 100 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 4607fb50c4678..d3504eee807be 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/item.json @@ -74,6 +74,10 @@ "type": ["object", "null"], "properties": {} }, + "external_name": { + "type": ["string", "null"], + "maxLength": 100 + }, "applicable_items": { "type": ["array", "null"], "items": { 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 6b55529a9aab1..34768cd9672f2 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/order.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/order.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "name": "Order", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": ["string", "null"], @@ -76,7 +77,6 @@ "type": ["string", "null"], "maxLength": 50 }, - "invoice_round_off_amount": { "type": ["integer", "null"], "minimum": 0 @@ -175,6 +175,20 @@ "type": ["string", "null"], "maxLength": 100 }, + "business_entity_id": { + "type": ["string", "null"], + "maxLength": 50 + }, + "base_currency_code": { + "type": ["string", "null"], + "maxLength": 3 + }, + "exchange_rate": { + "type": ["number", "null"] + }, + "object": { + "type": ["string", "null"] + }, "order_line_items": { "type": ["array", "null"], "items": { @@ -239,7 +253,6 @@ "type": ["string", "null"], "maxLength": 250 }, - "status": { "type": ["string", "null"] }, 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 26095b14a47e9..361df91555ee3 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 @@ -18,6 +18,9 @@ "customer_id": { "type": ["string", "null"] }, + "object": { + "type": ["string", "null"] + }, "type": { "type": ["string", "null"], "enum": [ 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 6892dcc357ca0..ecb0a70f78f10 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/plan.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/plan.json @@ -154,6 +154,15 @@ "type": ["string", "null"], "maxLength": 2000 }, + "channel": { + "type": ["string", "null"] + }, + "charge_model": { + "type": ["string", "null"] + }, + "object": { + "type": ["string", "null"] + }, "taxable": { "type": ["boolean", "null"] }, 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 7089ea9ef12cc..4239abe82ae5d 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 @@ -41,6 +41,9 @@ "created_at": { "type": ["integer", "null"] }, + "object": { + "type": ["string", "null"] + }, "custom_fields": { "type": ["null", "array"], "items": { 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 4e7761b5d99e5..e41fb562b6f84 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/subscription.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/subscription.json @@ -167,6 +167,13 @@ "auto_close_invoices": { "type": ["boolean", "null"] }, + "business_entity_id": { + "type": ["string", "null"], + "maxLength": 50 + }, + "channel": { + "type": ["string", "null"] + }, "coupons": { "type": ["array", "null"], "items": { @@ -347,7 +354,6 @@ } } }, - "subscription_items": { "type": ["array", "null"], "items": { @@ -466,7 +472,6 @@ } } }, - "plan_id": { "type": ["string", "null"], "maxLength": 100 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 4237fe31f793d..87662abdf5c92 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json @@ -132,6 +132,28 @@ "type": ["string", "null"], "max-length": 500 }, + "base_currency_code": { + "type": ["string", "null"], + "maxLength": 3 + }, + "business_entity_id": { + "type": ["string", "null"], + "maxLength": 50 + }, + "object": { + "type": ["string", "null"] + }, + "error_text": { + "type": ["string", "null"], + "maxLength": 65000 + }, + "payment_method_details": { + "type": ["string", "null"] + }, + "reference_number": { + "type": ["string", "null"], + "maxLength": 100 + }, "linked_invoices": { "type": ["array", "null"], "items": { diff --git a/docs/integrations/sources/chargebee.md b/docs/integrations/sources/chargebee.md index 50cf1afec6ac7..cea8389b8c92b 100644 --- a/docs/integrations/sources/chargebee.md +++ b/docs/integrations/sources/chargebee.md @@ -34,30 +34,30 @@ The Chargebee source connector supports the following [sync modes](https://docs. Most streams are supported regardless of your Chargebee site's [Product Catalog version](https://www.chargebee.com/docs/1.0/upgrade-product-catalog.html), with a few version-specific exceptions. -| Stream | Product Catalog 1.0 | Product Catalog 2.0 | -|------------------------|---------------------|---------------------| -| [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) | | ✔ | -| [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) | ✔ | ✔ | -| [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) | | ✔ | -| [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) | ✔ | ✔ | -| [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) | ✔ | ✔ | -| [Virtual Bank Accounts](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts) | ✔ | ✔ | +| Stream | Product Catalog 1.0 | Product Catalog 2.0 | +| ------------------------------------------------------------------------------------------------------ | ------------------- | ------------------- | +| [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) | | ✔ | +| [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) | ✔ | ✔ | +| [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) | | ✔ | +| [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) | ✔ | ✔ | +| [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) | ✔ | ✔ | +| [Virtual Bank Accounts](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts) | ✔ | ✔ | :::note 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. @@ -70,9 +70,10 @@ The Chargebee connector should not run into [Chargebee API](https://apidocs.char ## Changelog | Version | Date | Pull Request | Subject | -|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------------| -| 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 | +| :------ | :--------- | :------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- | +| 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 | | 0.2.3 | 2023-03-22 | [24370](https://github.com/airbytehq/airbyte/pull/24370) | Ignore 404 errors for `Contact` stream | | 0.2.2 | 2023-02-17 | [21688](https://github.com/airbytehq/airbyte/pull/21688) | Migrate to CDK beta 0.29; fix schemas | | 0.2.1 | 2023-02-17 | [23207](https://github.com/airbytehq/airbyte/pull/23207) | Edited stream schemas to get rid of unnecessary `enum` |