Skip to content

Commit

Permalink
✨ Source Chargebee: add new fields in streams (#33661)
Browse files Browse the repository at this point in the history
Co-authored-by: KimPlv <kim.plavonil@sendinblue.com>
  • Loading branch information
pnilan and KimPlv authored Dec 20, 2023
1 parent faedd86 commit 2ee3b49
Show file tree
Hide file tree
Showing 16 changed files with 157 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"type": ["string", "null"],
"max-length": 2000
},
"object": {
"type": ["string", "null"]
},
"item_constraints": {
"type": ["array", "null"],
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -413,7 +423,6 @@
"card_status": {
"type": ["string", "null"]
},

"meta_data": {
"type": ["object", "null"],
"properties": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"content": {
"type": ["object", "null"]
},
"object": {
"type": ["string", "null"]
},
"webhooks": {
"type": ["array", "null"],
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"type": ["string", "null"],
"maxLength": 50
},
"business_entity_id": {
"type": ["string", "null"]
},
"subscription_id": {
"type": ["string", "null"],
"maxLength": 50
Expand Down Expand Up @@ -142,14 +145,23 @@
"payment_owner": {
"type": ["string", "null"]
},

"void_reason_code": {
"type": ["string", "null"],
"maxLength": 100
},
"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
Expand Down Expand Up @@ -281,7 +293,6 @@
"type": ["integer", "null"],
"minimum": 0
},

"entity_id": {
"type": ["string", "null"],
"maxLength": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
"type": ["object", "null"],
"properties": {}
},
"external_name": {
"type": ["string", "null"],
"maxLength": 100
},
"applicable_items": {
"type": ["array", "null"],
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"name": "Order",
"type": "object",
"additionalProperties": true,
"properties": {
"id": {
"type": ["string", "null"],
Expand Down Expand Up @@ -76,7 +77,6 @@
"type": ["string", "null"],
"maxLength": 50
},

"invoice_round_off_amount": {
"type": ["integer", "null"],
"minimum": 0
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -239,7 +253,6 @@
"type": ["string", "null"],
"maxLength": 250
},

"status": {
"type": ["string", "null"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"customer_id": {
"type": ["string", "null"]
},
"object": {
"type": ["string", "null"]
},
"type": {
"type": ["string", "null"],
"enum": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"created_at": {
"type": ["integer", "null"]
},
"object": {
"type": ["string", "null"]
},
"custom_fields": {
"type": ["null", "array"],
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -347,7 +354,6 @@
}
}
},

"subscription_items": {
"type": ["array", "null"],
"items": {
Expand Down Expand Up @@ -466,7 +472,6 @@
}
}
},

"plan_id": {
"type": ["string", "null"],
"maxLength": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit 2ee3b49

Please sign in to comment.