From 5c7a0e1bef9473d9dcb09091c8ed86dc62710937 Mon Sep 17 00:00:00 2001 From: Serhii Lazebnyi <53845333+lazebnyi@users.noreply.github.com> Date: Thu, 16 Mar 2023 18:11:59 +0100 Subject: [PATCH] Updated chargebee expected records (#24146) --- .../integration_tests/expected_records.jsonl | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 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 9c88e6a6b987..546c17d13456 100644 --- a/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl +++ b/airbyte-integrations/connectors/source-chargebee/integration_tests/expected_records.jsonl @@ -4,28 +4,27 @@ {"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":"item","data":{"id":"cbdemo_implementation_charge","name":"Implementation Charge","external_name":"Implementation Charge","description":"Additional one-time charge for implementation support.","status":"active","resource_version":1627671464428,"updated_at":1627671464,"item_family_id":"cbdemo_pf_crm","type":"charge","is_shippable":false,"is_giftable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"metered":false,"channel":"web","object":"item","custom_fields":[]},"emitted_at":1676569197777} -{"stream":"item","data":{"id":"cbdemo_setup_charge","name":"Setup Charge","external_name":"Setup Charge","description":"Additional one-time charge for setting up support.","status":"active","resource_version":1627671465461,"updated_at":1627671465,"item_family_id":"cbdemo_pf_analytics","type":"charge","is_shippable":false,"is_giftable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"metered":false,"channel":"web","object":"item","custom_fields":[]},"emitted_at":1676569197782} -{"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":1676569200747} +{"stream": "item", "data": {"id": "cbdemo_advanced", "name": "Advanced", "external_name": "Advanced", "description": "Uncover hidden insights and carry out deeper analytics for your enterprise with this advanced plan.", "status": "active", "resource_version": 1674035640445, "updated_at": 1674035640, "item_family_id": "cbdemo_pf_analytics", "type": "plan", "is_shippable": true, "is_giftable": false, "enabled_for_checkout": true, "enabled_in_portal": true, "item_applicability": "all", "metered": false, "channel": "web", "metadata": {}, "object": "item", "custom_fields": []}, "emitted_at": 1678971136879} +{"stream": "item", "data": {"id": "cbdemo_basic", "name": "Basic", "external_name": "Basic", "description": "Starter plan for all your basic reporting requirements.", "status": "active", "resource_version": 1674035673162, "updated_at": 1674035673, "item_family_id": "cbdemo_pf_analytics", "type": "plan", "is_shippable": true, "is_giftable": false, "enabled_for_checkout": true, "enabled_in_portal": true, "item_applicability": "all", "metered": false, "channel": "web", "metadata": {}, "object": "item", "custom_fields": []}, "emitted_at": 1678971136891} +{"stream": "item", "data": {"id": "cbdemo_intermediary", "name": "Intermediary", "external_name": "Intermediary", "description": "Smart plan with the right mix of basic and slightly advanced reporting tools.", "status": "active", "resource_version": 1674035686971, "updated_at": 1674035686, "item_family_id": "cbdemo_pf_analytics", "type": "plan", "is_shippable": true, "is_giftable": false, "enabled_for_checkout": true, "enabled_in_portal": true, "item_applicability": "all", "metered": false, "channel": "web", "metadata": {}, "object": "item", "custom_fields": []}, "emitted_at": 1678971136900} {"stream":"attached_item","data":{"id":"e49c6ed7-9f1b-4c79-9235-549ce8ae9a1f","parent_item_id":"cbdemo_advanced","item_id":"cbdemo_setup_charge","status":"active","charge_on_event":"subscription_trial_start","charge_once":false,"created_at":1674032839,"resource_version":1674032839573,"updated_at":1674032839,"object":"attached_item","custom_fields":[]},"emitted_at":1676569205846} {"stream":"attached_item","data":{"id":"25976ccf-8e44-4fce-8eab-2a1658eb0a2b","parent_item_id":"cbdemo_advanced","item_id":"cbdemo_analytics_additionalusers","type":"mandatory","status":"active","quantity":1,"created_at":1674032827,"resource_version":1674032827801,"updated_at":1674032827,"object":"attached_item","custom_fields":[]},"emitted_at":1676569205849} {"stream":"attached_item","data":{"id":"69b451b1-e00a-4522-ab6f-027586d24b85","parent_item_id":"cbdemo_basic","item_id":"cbdemo_setup_charge","status":"active","charge_on_event":"subscription_creation","charge_once":false,"created_at":1674032880,"resource_version":1674032880261,"updated_at":1674032880,"object":"attached_item","custom_fields":[]},"emitted_at":1676569206020} -{"stream":"item_price","data":{"id":"cbdemo_lite-USD-monthly","name":"Lite USD Monthly","item_family_id":"cbdemo_pf_crm","item_id":"cbdemo_lite","description":"Lite Monthly Plan USD","status":"active","external_name":"Lite - Monthly Plan","pricing_model":"per_unit","price":50000,"period":1,"currency_code":"USD","period_unit":"month","free_quantity":0,"channel":"web","resource_version":1627671465818,"updated_at":1627671465,"created_at":1627671465,"is_taxable":true,"item_type":"plan","show_description_in_invoices":true,"show_description_in_quotes":true,"object":"item_price","custom_fields":[]},"emitted_at":1676569209311} -{"stream":"item_price","data":{"id":"cbdemo_lite-USD-yearly","name":"Lite USD Yearly","item_family_id":"cbdemo_pf_crm","item_id":"cbdemo_lite","description":"Lite Yearly Plan USD","status":"active","external_name":"Lite - Yearly Plan","pricing_model":"per_unit","price":500000,"period":1,"currency_code":"USD","period_unit":"year","free_quantity":0,"channel":"web","resource_version":1627671466171,"updated_at":1627671466,"created_at":1627671466,"is_taxable":true,"item_type":"plan","show_description_in_invoices":true,"show_description_in_quotes":true,"object":"item_price","custom_fields":[]},"emitted_at":1676569209318} -{"stream":"item_price","data":{"id":"cbdemo_standard-USD-monthly","name":"Standard USD Monthly","item_family_id":"cbdemo_pf_crm","item_id":"cbdemo_standard","description":"Standard Monthly Plan USD","status":"active","external_name":"Standard - Monthly Plan","pricing_model":"per_unit","price":75000,"period":1,"currency_code":"USD","period_unit":"month","free_quantity":0,"channel":"web","resource_version":1627671466509,"updated_at":1627671466,"created_at":1627671466,"is_taxable":true,"item_type":"plan","show_description_in_invoices":true,"show_description_in_quotes":true,"object":"item_price","custom_fields":[]},"emitted_at":1676569209321} -{"stream":"payment_source","data":{"id":"pm_AzZlweSefvdbQUxs","updated_at":1627671476,"resource_version":1627671476346,"deleted":false,"object":"payment_source","customer_id":"cbdemo_richard","type":"card","reference_id":"tok_AzZlweSefvdbFUxr","status":"valid","gateway":"chargebee","gateway_account_id":"gw_16CKmRSb2oGddH4","ip_address":"176.37.67.33","created_at":1627671476,"card":{"first_name":"Ritchie","last_name":"Fox","iin":"401288","last4":"1881","funding_type":"not_known","expiry_month":10,"expiry_year":2026,"masked_number":"************1881","object":"card","brand":"visa"},"custom_fields":[]},"emitted_at":1676569213811} -{"stream":"payment_source","data":{"id":"pm_AzZlweSefvdeFUxy","updated_at":1627671476,"resource_version":1627671476521,"deleted":false,"object":"payment_source","customer_id":"cbdemo_simon","type":"card","reference_id":"tok_AzZlweSefvde2Uxx","status":"valid","gateway":"chargebee","gateway_account_id":"gw_16CKmRSb2oGddH4","ip_address":"176.37.67.33","created_at":1627671476,"card":{"first_name":"Simon","last_name":"Masrani","iin":"555555","last4":"4444","funding_type":"not_known","expiry_month":12,"expiry_year":2029,"masked_number":"************4444","object":"card","brand":"mastercard"},"custom_fields":[]},"emitted_at":1676569213819} -{"stream":"payment_source","data":{"id":"pm_AzZlweSefvdgrUy4","updated_at":1627671476,"resource_version":1627671476683,"deleted":false,"object":"payment_source","customer_id":"cbdemo_douglas","type":"card","reference_id":"tok_AzZlweSefvdghUy3","status":"valid","gateway":"chargebee","gateway_account_id":"gw_16CKmRSb2oGddH4","ip_address":"176.37.67.33","created_at":1627671476,"card":{"first_name":"Douglas","last_name":"Quaid","iin":"371449","last4":"8431","funding_type":"not_known","expiry_month":5,"expiry_year":2028,"masked_number":"***********8431","object":"card","brand":"american_express"},"custom_fields":[]},"emitted_at":1676569213825} +{"stream": "item_price", "data": {"id": "Test-Plan-1-USD-Daily", "name": "Test Plan 1 USD Daily", "item_family_id": "cbdemo_pf_analytics", "item_id": "Test-Plan-1", "description": "Test", "status": "active", "external_name": "Test Plan 1", "pricing_model": "flat_fee", "price": 1000, "period": 1, "currency_code": "USD", "period_unit": "day", "shipping_period": 1, "shipping_period_unit": "day", "free_quantity": 0, "channel": "web", "resource_version": 1674036400224, "updated_at": 1674036400, "created_at": 1674036400, "invoice_notes": "Test", "is_taxable": true, "item_type": "plan", "show_description_in_invoices": true, "show_description_in_quotes": true, "object": "item_price", "custom_fields": []}, "emitted_at": 1678971392306} +{"stream": "item_price", "data": {"id": "Test-Gift-Plan-1-USD-Daily", "name": "Test Gift Plan 1 USD Daily", "item_family_id": "cbdemo_pf_crm", "item_id": "Test-Gift-Plan-1", "description": "Test gift", "status": "active", "external_name": "Test Gift Plan 1", "pricing_model": "flat_fee", "price": 1500, "period": 1, "currency_code": "USD", "period_unit": "day", "shipping_period": 1, "shipping_period_unit": "day", "billing_cycles": 1, "free_quantity": 0, "channel": "web", "resource_version": 1674055340456, "updated_at": 1674055340, "created_at": 1674055340, "invoice_notes": "Test gift", "is_taxable": true, "item_type": "plan", "show_description_in_invoices": true, "show_description_in_quotes": true, "object": "item_price", "custom_fields": []}, "emitted_at": 1678971392312} +{"stream": "item_price", "data": {"id": "Test-Gift-Plan-1-USD-Weekly", "name": "Test Gift Plan 1 USD Weekly", "item_family_id": "cbdemo_pf_crm", "item_id": "Test-Gift-Plan-1", "description": "Test", "status": "active", "external_name": "Test Gift Plan 1", "pricing_model": "flat_fee", "price": 20000, "period": 1, "currency_code": "USD", "period_unit": "week", "shipping_period": 1, "shipping_period_unit": "week", "billing_cycles": 1, "free_quantity": 0, "channel": "web", "resource_version": 1674056134136, "updated_at": 1674056134, "created_at": 1674056134, "is_taxable": true, "item_type": "plan", "show_description_in_invoices": true, "show_description_in_quotes": true, "object": "item_price", "custom_fields": []}, "emitted_at": 1678971392319} +{"stream": "payment_source", "data": {"id": "pm_Azz5jBTTJ96QflvC", "updated_at": 1674057604, "resource_version": 1674057604123, "deleted": false, "object": "payment_source", "customer_id": "Azz5jBTTJ96Mjlv5", "type": "card", "reference_id": "tok_Azz5jBTTJ96QSlvA", "status": "valid", "gateway": "chargebee", "gateway_account_id": "gw_16CKmRSb2oGddH4", "ip_address": "85.209.47.207", "created_at": 1674057604, "card": {"iin": "411111", "last4": "1111", "funding_type": "credit", "expiry_month": 12, "expiry_year": 2029, "masked_number": "************1111", "object": "card", "brand": "visa"}, "custom_fields": []}, "emitted_at": 1678971627515} +{"stream": "payment_source", "data": {"id": "pm_6olPmTVuo8BJuz", "updated_at": 1676446372, "resource_version": 1676446372397, "deleted": false, "object": "payment_source", "customer_id": "Azz5jBTTJ96UqlvE", "type": "card", "reference_id": "tok_6olPmTVuo8B8uy", "status": "valid", "gateway": "chargebee", "gateway_account_id": "gw_16CKmRSb2oGddH4", "created_at": 1676446372, "card": {"first_name": "User2", "last_name": "Sample", "iin": "411111", "last4": "1111", "funding_type": "credit", "expiry_month": 1, "expiry_year": 2025, "billing_addr1": "Test adderess 2", "billing_city": "San Francisco", "billing_state_code": "CA", "billing_state": "California", "billing_country": "US", "billing_zip": "94114", "masked_number": "************1111", "object": "card", "brand": "visa"}, "custom_fields": []}, "emitted_at": 1678971627741} {"stream":"promotional_credit","data":{"id":"pc_16CR0QTTZPx6wEbXR","customer_id":"Test-Custome-1","type":"decrement","amount":1000,"description":"Applied to the invoice # 39","credit_type":"general","closing_balance":26000,"created_at":1674298041,"object":"promotional_credit","currency_code":"USD","custom_fields":[]},"emitted_at":1676569220310} {"stream":"promotional_credit","data":{"id":"pc_16CZbuTTZGXtAFrxD","customer_id":"cbdemo_richard","type":"decrement","amount":1000,"description":"Applied to the invoice # 37","credit_type":"general","closing_balance":47000,"created_at":1674295799,"object":"promotional_credit","currency_code":"USD","custom_fields":[]},"emitted_at":1676569220318} {"stream":"promotional_credit","data":{"id":"pc_AzqD80TTZGFG7TiT6","customer_id":"cbdemo_tyler","type":"decrement","amount":1000,"description":"Applied to the invoice # 36","credit_type":"general","closing_balance":107000,"created_at":1674295727,"object":"promotional_credit","currency_code":"USD","custom_fields":[]},"emitted_at":1676569220325} {"stream":"gift","data":{"id":"Azz5jBTTJ96eclvRDvCs2SkyRM3cdsflXE5ClcIpcdbOPaa950","status":"unclaimed","scheduled_at":1674057609,"auto_claim":false,"updated_at":1674057613,"resource_version":1674057613941,"object":"gift","no_expiry":true,"gifter":{"customer_id":"Azz5jBTTJ96Mjlv5","invoice_id":"27","signature":"Airbyte","note":"Test gift","object":"gifter"},"gift_receiver":{"customer_id":"Azz5jBTTJ96UqlvE","subscription_id":"Azz5jBTTJ96Y2lvK","first_name":"Test","last_name":"2","email":"integration-tgest@airbyte.io","object":"gift_receiver"},"gift_timelines":[{"status":"unclaimed","occurred_at":1674057613,"object":"gift_timeline"},{"status":"scheduled","occurred_at":1674057604,"object":"gift_timeline"}],"custom_fields":[]},"emitted_at":1676569222624} -{"stream": "coupon", "data": {"id": "cbdemo_earlybird", "name": "Early Bird", "invoice_name": "Early Bird Discount", "discount_type": "fixed_amount", "discount_amount": 1000, "duration_type": "forever", "max_redemptions": 5000, "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1627671473, "updated_at": 1627671473, "resource_version": 1627671473312, "object": "coupon", "redemptions": 0, "currency_code": "USD", "custom_fields": []}, "emitted_at": 1678906849250} -{"stream": "coupon", "data": {"id": "cbdemo_holidays", "name": "Holidays", "invoice_name": "Happy Holidays!", "discount_type": "percentage", "discount_percentage": 15.0, "duration_type": "limited_period", "duration_month": 12, "status": "active", "apply_discount_on": "not_applicable", "apply_on": "each_specified_item", "created_at": 1627671473, "updated_at": 1627671473, "period": 12, "period_unit": "month", "resource_version": 1627671473419, "object": "coupon", "redemptions": 0, "item_constraints": [{"item_type": "plan", "constraint": "none"}, {"item_type": "addon", "constraint": "all"}, {"item_type": "charge", "constraint": "none"}], "custom_fields": []}, "emitted_at": 1678906849257} -{"stream": "coupon", "data": {"id": "cbdemo_specialoffer", "name": "Special Offer", "invoice_name": "Special Discount", "discount_type": "percentage", "discount_percentage": 10.0, "duration_type": "forever", "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1627671473, "updated_at": 1627671473, "resource_version": 1627671473513, "object": "coupon", "redemptions": 0, "custom_fields": []}, "emitted_at": 1678906849263} -{"stream":"transaction","data":{"id":"txn_AzZlweSefvefqUyl","customer_id":"cbdemo_richard","subscription_id":"cbdemo_active_sub","payment_method":"other","gateway":"not_applicable","type":"payment","date":1594430880,"exchange_rate":1,"amount":950000,"status":"success","updated_at":1627671480,"resource_version":1627671480513,"deleted":false,"object":"transaction","currency_code":"USD","base_currency_code":"USD","amount_unused":0,"linked_invoices":[{"invoice_id":"cbdemo_inv_001","applied_amount":950000,"applied_at":1594430880,"invoice_date":1594430880,"invoice_total":950000,"invoice_status":"paid"}],"linked_refunds":[],"custom_fields":[]},"emitted_at":1676569231301} -{"stream":"transaction","data":{"id":"txn_AzZlweSefvemUUys","customer_id":"cbdemo_richard","subscription_id":"cbdemo_active_sub","payment_method":"other","gateway":"not_applicable","type":"payment","date":1626053280,"exchange_rate":1,"amount":950000,"status":"success","updated_at":1627671480,"resource_version":1627671480969,"deleted":false,"object":"transaction","currency_code":"USD","base_currency_code":"USD","amount_unused":0,"linked_invoices":[{"invoice_id":"cbdemo_inv_002","applied_amount":950000,"applied_at":1626053280,"invoice_date":1626053280,"invoice_total":950000,"invoice_status":"paid"}],"linked_refunds":[],"custom_fields":[]},"emitted_at":1676569231309} -{"stream":"transaction","data":{"id":"txn_AzZlweSefvetOUyz","customer_id":"cbdemo_tyler","subscription_id":"cbdemo_non_renewing_sub","payment_method":"other","gateway":"not_applicable","type":"payment","date":1626053281,"exchange_rate":1,"amount":50000,"status":"success","updated_at":1627671481,"resource_version":1627671481357,"deleted":false,"object":"transaction","currency_code":"USD","base_currency_code":"USD","amount_unused":0,"linked_invoices":[{"invoice_id":"cbdemo_inv_003","applied_amount":50000,"applied_at":1626053281,"invoice_date":1626053281,"invoice_total":80000,"invoice_status":"paid"}],"linked_refunds":[],"custom_fields":[]},"emitted_at":1676569231317} +{"stream": "coupon", "data": {"id": "TESTCOUPON4", "name": "Test Coupon 4", "invoice_name": "", "discount_type": "percentage", "discount_percentage": 12.0, "duration_type": "one_time", "valid_till": 1680332399, "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1676371290, "updated_at": 1676371290, "resource_version": 1676371290028, "object": "coupon", "redemptions": 1, "custom_fields": []}, "emitted_at": 1678971894181} +{"stream": "coupon", "data": {"id": "TESTCOUPON5", "name": "Test Coupon 5", "invoice_name": "", "discount_type": "fixed_amount", "discount_amount": 300, "duration_type": "forever", "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1676371313, "updated_at": 1676371313, "resource_version": 1676371313572, "object": "coupon", "redemptions": 1, "currency_code": "USD", "custom_fields": []}, "emitted_at": 1678971894193} +{"stream": "coupon", "data": {"id": "TESTCOUPON6", "name": "Test Coupon 6", "invoice_name": "", "discount_type": "fixed_amount", "discount_amount": 500, "duration_type": "forever", "status": "active", "apply_discount_on": "not_applicable", "apply_on": "invoice_amount", "created_at": 1676371327, "updated_at": 1676371327, "resource_version": 1676371327854, "object": "coupon", "redemptions": 1, "currency_code": "USD", "custom_fields": []}, "emitted_at": 1678971894207} +{"stream": "transaction", "data": {"id": "txn_AzZTZgTTHbgFlKJ", "customer_id": "cbdemo_tyler", "subscription_id": "cbdemo_non_renewing_sub", "payment_method": "cash", "reference_number": "205000001", "gateway": "not_applicable", "type": "payment", "date": 1674070800, "exchange_rate": 1.0, "amount": 27000, "status": "success", "updated_at": 1674034862, "resource_version": 1674034862389, "deleted": false, "object": "transaction", "currency_code": "USD", "base_currency_code": "USD", "amount_unused": 0, "linked_invoices": [{"invoice_id": "cbdemo_inv_003", "applied_amount": 27000, "applied_at": 1674034862, "invoice_date": 1626053281, "invoice_total": 80000, "invoice_status": "paid"}], "linked_refunds": [], "custom_fields": []}, "emitted_at": 1678972145147} +{"stream": "transaction", "data": {"id": "txn_16CQyCTTHdwAAwZq", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "gateway_account_id": "gw_16CKmRSb2oGddH4", "payment_source_id": "pm_AzZlweSefvdgrUy4", "payment_method": "card", "gateway": "chargebee", "type": "payment", "date": 1674035400, "exchange_rate": 1.0, "amount": 50000, "id_at_gateway": "cb_16CQyCTTHdwAKwZr", "status": "failure", "error_code": "3003", "error_text": "Activity limit exceeded", "updated_at": 1674035400, "resource_version": 1674035400229, "deleted": false, "object": "transaction", "masked_card_number": "***********8431", "currency_code": "USD", "base_currency_code": "USD", "amount_unused": 0, "linked_invoices": [{"invoice_id": "23", "applied_amount": 50000, "applied_at": 1674035400, "invoice_date": 1674035390, "invoice_total": 50000, "invoice_status": "paid"}], "linked_refunds": [], "payment_method_details": "{\"card\":{\"first_name\":\"Douglas\",\"last_name\":\"Quaid\",\"iin\":\"371449\",\"last4\":\"8431\",\"funding_type\":\"not_known\",\"expiry_month\":5,\"expiry_year\":2028,\"masked_number\":\"***********8431\",\"object\":\"card\",\"brand\":\"american_express\"}}", "custom_fields": []}, "emitted_at": 1678972145155} +{"stream": "transaction", "data": {"id": "txn_16CLzOTTHe3QSDF", "customer_id": "cbdemo_douglas", "subscription_id": "AzZTZgTTHdIU1NP", "payment_method": "cash", "reference_number": "113234235", "gateway": "not_applicable", "type": "payment", "date": 1674071372, "exchange_rate": 1.0, "amount": 50000, "status": "success", "updated_at": 1674035428, "resource_version": 1674035428131, "deleted": false, "object": "transaction", "currency_code": "USD", "base_currency_code": "USD", "amount_unused": 0, "linked_invoices": [{"invoice_id": "23", "applied_amount": 50000, "applied_at": 1674035428, "invoice_date": 1674035390, "invoice_total": 50000, "invoice_status": "paid"}], "linked_refunds": [], "custom_fields": []}, "emitted_at": 1678972145163} {"stream":"quote","data":{"id":"Q20230001","name":"Q1","customer_id":"Test-Custome-1","status":"closed","operation_type":"create_subscription_for_customer","price_type":"tax_exclusive","valid_till":1674979199,"date":1674054723,"total_payable":0,"charge_on_acceptance":0,"sub_total":1000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"version":1,"updated_at":1674979203,"resource_version":1674979203400,"object":"quote","line_items":[{"id":"AzZTZgTTIx14r2aG","date_from":1674054723,"date_to":1674141123,"unit_amount":1000,"quantity":1,"amount":1000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"Test-Custome-1","description":"Test Plan 1","entity_type":"plan_item_price","entity_id":"Test-Plan-1-USD-Daily","entity_description":"Test","discount_amount":1000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":1000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIx14r2aG","discount_type":"promotional_credits","discount_amount":1000}],"taxes":[],"line_item_taxes":[],"currency_code":"USD","billing_address":{"first_name":"Sample Name Two","last_name":"Sample Lastname 2","email":"name2@example.com","company":"Test Company Org 2","phone":"+1 388 846 3888","line1":"Ms Ninette Franck","line2":"4381","city":"San Francisco","state_code":"CA","state":"California","country":"US","zip":"94114","validation_status":"not_validated","object":"billing_address"},"shipping_address":{"first_name":"Sample Name Two","last_name":"Sample Lastname 2","email":"name2@example.com","company":"Test Company Org 2","phone":"+1 388 846 3888","line1":"Ms Ninette Franck","line2":"4381","city":"San Francisco","state_code":"CA","state":"California","country":"US","zip":"94114","validation_status":"not_validated","object":"shipping_address"},"custom_fields":[]},"emitted_at":1676569246807} {"stream":"quote","data":{"id":"Q20230002","name":"Q2","customer_id":"cbdemo_richard","status":"closed","operation_type":"onetime_invoice","price_type":"tax_exclusive","valid_till":1674979199,"date":1674054772,"total_payable":0,"charge_on_acceptance":0,"sub_total":50000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"version":1,"updated_at":1674979203,"resource_version":1674979203437,"object":"quote","line_items":[{"id":"AzZTZgTTIxDoN2ar","date_from":1674054772,"date_to":1674227572,"unit_amount":50000,"quantity":1,"amount":50000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"cbdemo_richard","description":"Implementation Charge","entity_type":"charge_item_price","entity_id":"cbdemo_implementation-charge-USD","discount_amount":50000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":50000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIxDoN2ar","discount_type":"promotional_credits","discount_amount":50000}],"taxes":[],"line_item_taxes":[],"currency_code":"USD","billing_address":{"first_name":"Richard","last_name":"Hendricks","company":"Zencorporation","validation_status":"not_validated","object":"billing_address"},"shipping_address":{"validation_status":"not_validated","object":"shipping_address"},"custom_fields":[]},"emitted_at":1676569246817} {"stream":"quote","data":{"id":"Q20230003","name":"Q3","customer_id":"cbdemo_tyler","status":"closed","operation_type":"onetime_invoice","price_type":"tax_exclusive","valid_till":1674979199,"date":1674054823,"total_payable":0,"charge_on_acceptance":0,"sub_total":50000,"total":0,"credits_applied":0,"amount_paid":0,"amount_due":0,"version":1,"updated_at":1674979203,"resource_version":1674979203581,"object":"quote","line_items":[{"id":"AzZTZgTTIxQzS2bH","date_from":1674054823,"date_to":1674227623,"unit_amount":50000,"quantity":1,"amount":50000,"pricing_model":"flat_fee","is_taxed":false,"tax_amount":0,"object":"line_item","customer_id":"cbdemo_tyler","description":"Setup Charge","entity_type":"charge_item_price","entity_id":"cbdemo_setup-charge-USD","discount_amount":50000,"item_level_discount_amount":0}],"discounts":[{"object":"discount","entity_type":"promotional_credits","description":"Promotional Credits","amount":50000}],"line_item_discounts":[{"object":"line_item_discount","line_item_id":"AzZTZgTTIxQzS2bH","discount_type":"promotional_credits","discount_amount":50000}],"taxes":[],"line_item_taxes":[],"currency_code":"USD","billing_address":{"first_name":"Tyler","last_name":"Durden","company":"Iselectrics","validation_status":"not_validated","object":"billing_address"},"shipping_address":{"validation_status":"not_validated","object":"shipping_address"},"custom_fields":[]},"emitted_at":1676569246824}