From 4add496b756d2ed9f429668655572f4465222a78 Mon Sep 17 00:00:00 2001 From: alvova Date: Fri, 9 Jul 2021 19:11:40 +0300 Subject: [PATCH 01/24] added status param to Subscriptions Stream --- .../connectors/source-stripe/source_stripe/source.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/source.py b/airbyte-integrations/connectors/source-stripe/source_stripe/source.py index 89ab34d018e2..4226dbdffebd 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/source.py +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/source.py @@ -211,10 +211,18 @@ def path(self, **kwargs): class Subscriptions(IncrementalStripeStream): cursor_field = "created" + status = "all" def path(self, **kwargs): return "subscriptions" + def request_params(self, stream_state=None, **kwargs): + stream_state = stream_state or {} + params = super().request_params(stream_state=stream_state, **kwargs) + params["created[gte]"] = stream_state.get(self.cursor_field) + params["status"] = self.status + return params + class SubscriptionItems(StripeStream): name = "subscription_items" From 85a42e618d5e56b7b52780f88ed58361a980bb5f Mon Sep 17 00:00:00 2001 From: alvova Date: Fri, 9 Jul 2021 19:56:16 +0300 Subject: [PATCH 02/24] updated version --- .../e094cb9a-26de-4645-8761-65c0c425d1de.json | 2 +- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- airbyte-integrations/connectors/source-stripe/CHANGELOG.md | 2 ++ airbyte-integrations/connectors/source-stripe/Dockerfile | 2 +- docs/integrations/sources/stripe.md | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json index 42e136c939b8..abc288868355 100644 --- a/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json +++ b/airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e094cb9a-26de-4645-8761-65c0c425d1de.json @@ -2,7 +2,7 @@ "sourceDefinitionId": "e094cb9a-26de-4645-8761-65c0c425d1de", "name": "Stripe", "dockerRepository": "airbyte/source-stripe", - "dockerImageTag": "0.1.13", + "dockerImageTag": "0.1.14", "documentationUrl": "https://hub.docker.com/r/airbyte/source-stripe", "icon": "stripe.svg" } diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 0ab6f14de2e0..ef815250956f 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -98,7 +98,7 @@ - sourceDefinitionId: e094cb9a-26de-4645-8761-65c0c425d1de name: Stripe dockerRepository: airbyte/source-stripe - dockerImageTag: 0.1.13 + dockerImageTag: 0.1.14 documentationUrl: https://hub.docker.com/r/airbyte/source-stripe icon: stripe.svg - sourceDefinitionId: b03a9f3e-22a5-11eb-adc1-0242ac120002 diff --git a/airbyte-integrations/connectors/source-stripe/CHANGELOG.md b/airbyte-integrations/connectors/source-stripe/CHANGELOG.md index c1cce68318d1..5ff257fe6c47 100644 --- a/airbyte-integrations/connectors/source-stripe/CHANGELOG.md +++ b/airbyte-integrations/connectors/source-stripe/CHANGELOG.md @@ -2,3 +2,5 @@ ## 0.1.8 Start using the new Source Acceptance tests +## 0.1.14 +Add status param to Subscriptions Stream diff --git a/airbyte-integrations/connectors/source-stripe/Dockerfile b/airbyte-integrations/connectors/source-stripe/Dockerfile index 7f77e51322c1..e365e702371e 100644 --- a/airbyte-integrations/connectors/source-stripe/Dockerfile +++ b/airbyte-integrations/connectors/source-stripe/Dockerfile @@ -12,5 +12,5 @@ RUN pip install . ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.1.13 +LABEL io.airbyte.version=0.1.14 LABEL io.airbyte.name=airbyte/source-stripe diff --git a/docs/integrations/sources/stripe.md b/docs/integrations/sources/stripe.md index b41e4b511114..4710e08e5205 100644 --- a/docs/integrations/sources/stripe.md +++ b/docs/integrations/sources/stripe.md @@ -64,6 +64,7 @@ If you would like to test Airbyte using test data on Stripe, `sk_test_` and `rk_ | Version | Date | Pull Request | Subject | | :------ | :-------- | :----- | :------ | +| 0.1.14 | 2021-07-09 | [4669](https://github.com/airbytehq/airbyte/pull/4669) | Add status param for Subscriptions Stream | | 0.1.13 | 2021-07-03 | [4528](https://github.com/airbytehq/airbyte/pull/4528) | Remove regex for acc validation | | 0.1.12 | 2021-06-08 | [3973](https://github.com/airbytehq/airbyte/pull/3973) | Add `AIRBYTE_ENTRYPOINT` for Kubernetes support | | 0.1.11 | 2021-05-30 | [3744](https://github.com/airbytehq/airbyte/pull/3744) | Fix types in schema | From b3f5f6c51751ed93e493c3bda9f3797b8839d7c9 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Tue, 13 Jul 2021 17:07:41 +0300 Subject: [PATCH 03/24] removed params['created[gte]'] from Subscriptions stream --- .../connectors/source-stripe/source_stripe/source.py | 1 - 1 file changed, 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/source.py b/airbyte-integrations/connectors/source-stripe/source_stripe/source.py index 4226dbdffebd..711d58953ae6 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/source.py +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/source.py @@ -219,7 +219,6 @@ def path(self, **kwargs): def request_params(self, stream_state=None, **kwargs): stream_state = stream_state or {} params = super().request_params(stream_state=stream_state, **kwargs) - params["created[gte]"] = stream_state.get(self.cursor_field) params["status"] = self.status return params From 93ac56bf93b7b5098e813ffd183b422a5afff265 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Tue, 13 Jul 2021 17:11:09 +0300 Subject: [PATCH 04/24] removed Changedlog.md, edited docs/integrations/stripe changelog for this fix --- airbyte-integrations/connectors/source-stripe/CHANGELOG.md | 6 ------ docs/integrations/sources/stripe.md | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 airbyte-integrations/connectors/source-stripe/CHANGELOG.md diff --git a/airbyte-integrations/connectors/source-stripe/CHANGELOG.md b/airbyte-integrations/connectors/source-stripe/CHANGELOG.md deleted file mode 100644 index 5ff257fe6c47..000000000000 --- a/airbyte-integrations/connectors/source-stripe/CHANGELOG.md +++ /dev/null @@ -1,6 +0,0 @@ -# Changelog - -## 0.1.8 -Start using the new Source Acceptance tests -## 0.1.14 -Add status param to Subscriptions Stream diff --git a/docs/integrations/sources/stripe.md b/docs/integrations/sources/stripe.md index 4710e08e5205..3b6592426e89 100644 --- a/docs/integrations/sources/stripe.md +++ b/docs/integrations/sources/stripe.md @@ -64,7 +64,7 @@ If you would like to test Airbyte using test data on Stripe, `sk_test_` and `rk_ | Version | Date | Pull Request | Subject | | :------ | :-------- | :----- | :------ | -| 0.1.14 | 2021-07-09 | [4669](https://github.com/airbytehq/airbyte/pull/4669) | Add status param for Subscriptions Stream | +| 0.1.14 | 2021-07-09 | [4669](https://github.com/airbytehq/airbyte/pull/4669) | Fix to Subscriptions Stream to retrive all statuses| | 0.1.13 | 2021-07-03 | [4528](https://github.com/airbytehq/airbyte/pull/4528) | Remove regex for acc validation | | 0.1.12 | 2021-06-08 | [3973](https://github.com/airbytehq/airbyte/pull/3973) | Add `AIRBYTE_ENTRYPOINT` for Kubernetes support | | 0.1.11 | 2021-05-30 | [3744](https://github.com/airbytehq/airbyte/pull/3744) | Fix types in schema | From d34fd79522b30d9c750e3f6fa5278ebf861a7e1a Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Tue, 13 Jul 2021 17:21:35 +0300 Subject: [PATCH 05/24] added expected_records_example for subscriptions status --- ...pected_subscriptions_statuses_records.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json b/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json new file mode 100644 index 000000000000..79e633b7b4d4 --- /dev/null +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json @@ -0,0 +1,19 @@ + +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeFKfIvdgFh3qw", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594766545, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeFKZGFvcdVAAd", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeFKnht1gZEPtM", "object": "subscription_item", "billing_thresholds": null, "created": 1594766546, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeFKfIvdgFh3qw", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeFKfIvdgFh3qw"}, "latest_invoice": "in_1J8OZSIEn5WyEQxnqy1SOqzg", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594766545, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483518}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeFK1tbpVQyzTh", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594766544, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeFKZGFvcdVAAd", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeFKXSUQN7eOnH", "object": "subscription_item", "billing_thresholds": null, "created": 1594766545, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeFK1tbpVQyzTh", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeFK1tbpVQyzTh"}, "latest_invoice": "in_1J8OZTIEn5WyEQxnNUNudevp", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594766544, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483507}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeDBukK9PihZcM", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594758610, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeDBiqbIBM4UJh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeDBYazQdJ4Po3", "object": "subscription_item", "billing_thresholds": null, "created": 1594758611, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeDBukK9PihZcM", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeDBukK9PihZcM"}, "latest_invoice": "in_1J8OZYIEn5WyEQxn5uiaD4Lo", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594758610, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483518}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeDB4t0BlSiCME", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594758610, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeDBiqbIBM4UJh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeDBuWkL41NwUB", "object": "subscription_item", "billing_thresholds": null, "created": 1594758610, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeDB4t0BlSiCME", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeDB4t0BlSiCME"}, "latest_invoice": "in_1J8OZSIEn5WyEQxnP5ljsfai", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594758610, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483508}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeCS8S0a1IV8XN", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594755897, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeCSJwR5Q79Kd1", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeCSxRoIVLLrSW", "object": "subscription_item", "billing_thresholds": null, "created": 1594755897, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeCS8S0a1IV8XN", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeCS8S0a1IV8XN"}, "latest_invoice": "in_1J8OZYIEn5WyEQxn9iKKgbhh", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594755897, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483519}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeCSmZsP6f6CnQ", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594755896, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeCSJwR5Q79Kd1", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeCSS932OsYGk4", "object": "subscription_item", "billing_thresholds": null, "created": 1594755897, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeCSmZsP6f6CnQ", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeCSmZsP6f6CnQ"}, "latest_invoice": "in_1J8OZdIEn5WyEQxn9oY6Pi1v", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594755896, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483508}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtUSf9ui0NQdD", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685301, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685303, "collection_method": "charge_automatically", "created": 1594685301, "current_period_end": 1597363701, "current_period_start": 1594685301, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685303, "items": {"object": "list", "data": [{"id": "si_HdtURMXtdHa6aS", "object": "subscription_item", "billing_thresholds": null, "created": 1594685302, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtUSf9ui0NQdD", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtUSf9ui0NQdD"}, "latest_invoice": "in_1H4bh3IEn5WyEQxnJQkCFPxc", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685301, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTqUuSenUm4f", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685299, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685303, "collection_method": "charge_automatically", "created": 1594685299, "current_period_end": 1626221299, "current_period_start": 1594685299, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685303, "items": {"object": "list", "data": [{"id": "si_HdtTnlxMRyovMV", "object": "subscription_item", "billing_thresholds": null, "created": 1594685299, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTqUuSenUm4f", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTqUuSenUm4f"}, "latest_invoice": "in_1H4bh1IEn5WyEQxnASiBtfYn", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685299, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTyRyzHADgJS", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685291, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685297, "collection_method": "charge_automatically", "created": 1594685291, "current_period_end": 1597363691, "current_period_start": 1594685291, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685297, "items": {"object": "list", "data": [{"id": "si_HdtTYq1K00CIsC", "object": "subscription_item", "billing_thresholds": null, "created": 1594685291, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTyRyzHADgJS", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTyRyzHADgJS"}, "latest_invoice": "in_1H4bgtIEn5WyEQxn7EqcmMn0", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgwIEn5WyEQxnySC3WgEQ", "start_date": 1594685291, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTSeZhOxBQUD", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685289, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685298, "collection_method": "charge_automatically", "created": 1594685289, "current_period_end": 1626221289, "current_period_start": 1594685289, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685298, "items": {"object": "list", "data": [{"id": "si_HdtT4Cs0EIufwt", "object": "subscription_item", "billing_thresholds": null, "created": 1594685289, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTSeZhOxBQUD", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTSeZhOxBQUD"}, "latest_invoice": "in_1H4bgrIEn5WyEQxnmxcLDpmG", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bguIEn5WyEQxnL1sw9BfJ", "start_date": 1594685289, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTAWL1LLjagi", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685283, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685288, "collection_method": "charge_automatically", "created": 1594685283, "current_period_end": 1597363683, "current_period_start": 1594685283, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685288, "items": {"object": "list", "data": [{"id": "si_HdtTPoc74Uijlv", "object": "subscription_item", "billing_thresholds": null, "created": 1594685284, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTAWL1LLjagi", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTAWL1LLjagi"}, "latest_invoice": "in_1H4bgmIEn5WyEQxnDcrHxhxd", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgnIEn5WyEQxnLrlOBKxM", "start_date": 1594685283, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTDFyQZs22E7", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685281, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685288, "collection_method": "charge_automatically", "created": 1594685281, "current_period_end": 1626221281, "current_period_start": 1594685281, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685288, "items": {"object": "list", "data": [{"id": "si_HdtT1XOQWAsj0s", "object": "subscription_item", "billing_thresholds": null, "created": 1594685281, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTDFyQZs22E7", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTDFyQZs22E7"}, "latest_invoice": "in_1H4bgjIEn5WyEQxn0Neq46ge", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bgnIEn5WyEQxncJIdI1XO", "start_date": 1594685281, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTM7KweIN5vd", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685279, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685280, "collection_method": "charge_automatically", "created": 1594685279, "current_period_end": 1597363679, "current_period_start": 1594685279, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685280, "items": {"object": "list", "data": [{"id": "si_HdtTIQJp2zwmtt", "object": "subscription_item", "billing_thresholds": null, "created": 1594685279, "metadata": {}, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjj6NiOg1NbAn", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTM7KweIN5vd", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTM7KweIN5vd"}, "latest_invoice": "in_1H4bghIEn5WyEQxngN3MRTh6", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685279, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTyV4ncbx4kh", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685275, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685280, "collection_method": "charge_automatically", "created": 1594685275, "current_period_end": 1626221275, "current_period_start": 1594685275, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685280, "items": {"object": "list", "data": [{"id": "si_HdtTz3x2ra4xqn", "object": "subscription_item", "billing_thresholds": null, "created": 1594685275, "metadata": {}, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVENTRVcWmica", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 96000, "unit_amount_decimal": "96000"}, "quantity": 1, "subscription": "sub_HdtTyV4ncbx4kh", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTyV4ncbx4kh"}, "latest_invoice": "in_1H4bgdIEn5WyEQxn7WF60b4m", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685275, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTsPMeQ0DM8I", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685269, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685273, "collection_method": "charge_automatically", "created": 1594685269, "current_period_end": 1597363669, "current_period_start": 1594685269, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685273, "items": {"object": "list", "data": [{"id": "si_HdtTEaSDsGRMHH", "object": "subscription_item", "billing_thresholds": null, "created": 1594685269, "metadata": {}, "plan": {"id": "plan_HHK7OBfHgbZol9", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHK7OBfHgbZol9", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTsPMeQ0DM8I", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTsPMeQ0DM8I"}, "latest_invoice": "in_1H4bgXIEn5WyEQxnHCOSJfmy", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHK7OBfHgbZol9", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgYIEn5WyEQxne8c79IU2", "start_date": 1594685269, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTHGRJgaV3Nk", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685266, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685274, "collection_method": "charge_automatically", "created": 1594685266, "current_period_end": 1597363666, "current_period_start": 1594685266, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685274, "items": {"object": "list", "data": [{"id": "si_HdtTfXoMNlkG8J", "object": "subscription_item", "billing_thresholds": null, "created": 1594685267, "metadata": {}, "plan": {"id": "plan_HCVFonLSv6DxXW", "object": "plan", "active": true, "aggregate_usage": null, "amount": 79900, "amount_decimal": "79900", "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVFonLSv6DxXW", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 79900, "unit_amount_decimal": "79900"}, "quantity": 1, "subscription": "sub_HdtTHGRJgaV3Nk", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTHGRJgaV3Nk"}, "latest_invoice": "in_1H4bgVIEn5WyEQxnl6vct4pW", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVFonLSv6DxXW", "object": "plan", "active": true, "aggregate_usage": null, "amount": 79900, "amount_decimal": "79900", "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bgYIEn5WyEQxnDlLrseFF", "start_date": 1594685266, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTM1U92xlzu2", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685261, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685266, "collection_method": "charge_automatically", "created": 1594685261, "current_period_end": 1597363661, "current_period_start": 1594685261, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685266, "items": {"object": "list", "data": [{"id": "si_HdtT3vnfY0RYIb", "object": "subscription_item", "billing_thresholds": null, "created": 1594685262, "metadata": {}, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjj6NiOg1NbAn", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTM1U92xlzu2", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTM1U92xlzu2"}, "latest_invoice": "in_1H4bgPIEn5WyEQxnxC16IWhV", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685261, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtT0ioHvdvWKO", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685262, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685266, "collection_method": "charge_automatically", "created": 1594685259, "current_period_end": 1626221262, "current_period_start": 1594685262, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685266, "items": {"object": "list", "data": [{"id": "si_HdtTYkFZyUqC39", "object": "subscription_item", "billing_thresholds": null, "created": 1594685259, "metadata": {}, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVENTRVcWmica", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 96000, "unit_amount_decimal": "96000"}, "quantity": 1, "subscription": "sub_HdtT0ioHvdvWKO", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtT0ioHvdvWKO"}, "latest_invoice": "in_1H4bgRIEn5WyEQxnCL9OOPIw", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685259, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} From d310f84139a52edaeec6ac780eb9582c2198f06a Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Tue, 13 Jul 2021 17:32:34 +0300 Subject: [PATCH 06/24] changed docs/integrations/sources/stripe changelog --- docs/integrations/sources/stripe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/sources/stripe.md b/docs/integrations/sources/stripe.md index 3b6592426e89..7cfedfca2681 100644 --- a/docs/integrations/sources/stripe.md +++ b/docs/integrations/sources/stripe.md @@ -64,7 +64,7 @@ If you would like to test Airbyte using test data on Stripe, `sk_test_` and `rk_ | Version | Date | Pull Request | Subject | | :------ | :-------- | :----- | :------ | -| 0.1.14 | 2021-07-09 | [4669](https://github.com/airbytehq/airbyte/pull/4669) | Fix to Subscriptions Stream to retrive all statuses| +| 0.1.14 | 2021-07-09 | [4669](https://github.com/airbytehq/airbyte/pull/4669) | Subscriptions Stream now returns all kinds of subscriptions (including expired and canceled)| | 0.1.13 | 2021-07-03 | [4528](https://github.com/airbytehq/airbyte/pull/4528) | Remove regex for acc validation | | 0.1.12 | 2021-06-08 | [3973](https://github.com/airbytehq/airbyte/pull/3973) | Add `AIRBYTE_ENTRYPOINT` for Kubernetes support | | 0.1.11 | 2021-05-30 | [3744](https://github.com/airbytehq/airbyte/pull/3744) | Fix types in schema | From 49e0ce04f0321127b04f91f46d513d7f98f3ab13 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 15:16:38 +0300 Subject: [PATCH 07/24] added source-acceptance-test capability + test for subscriptions --- .../connectors/source-stripe/README.md | 21 +- .../source-stripe/acceptance-test-config.yml | 34 +- .../connectors/source-stripe/build.gradle | 22 +- ...pected_subscriptions_statuses_records.json | 37 +- .../non_disputes_catalog.json | 669 +++++++++++++++++- .../non_invoice_line_items_catalog.json | 669 +++++++++++++++++- .../sample_files/configured_catalog.json | 669 +++++++++++++++++- .../connectors/source-stripe/setup.py | 11 +- .../source_stripe/schemas/customers.json | 669 +++++++++++++++++- .../source_stripe/schemas/subscriptions.json | 48 +- 10 files changed, 2748 insertions(+), 101 deletions(-) diff --git a/airbyte-integrations/connectors/source-stripe/README.md b/airbyte-integrations/connectors/source-stripe/README.md index 05abd00b7dbd..112858d7e30b 100644 --- a/airbyte-integrations/connectors/source-stripe/README.md +++ b/airbyte-integrations/connectors/source-stripe/README.md @@ -49,10 +49,10 @@ and place them into `secrets/config.json`. ### Locally running the connector ``` -python main_dev.py spec -python main_dev.py check --config secrets/config.json -python main_dev.py discover --config secrets/config.json -python main_dev.py read --config secrets/config.json --catalog sample_files/configured_catalog.json +python main.py spec +python main.py check --config secrets/config.json +python main.py discover --config secrets/config.json +python main.py read --config secrets/config.json --catalog sample_files/configured_catalog.json ``` ### Unit Tests @@ -61,17 +61,26 @@ To run unit tests locally, from the connector directory run: python -m pytest unit_tests ``` +#### Acceptance Tests +Customize `acceptance-test-config.yml` file to configure tests. See [Source Acceptance Tests](source-acceptance-tests.md) for more information. +If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py. +To run your integration tests with acceptance tests, from the connector root, run +``` +python -m pytest integration_tests -p integration_tests.acceptance +``` +To run your integration tests with docker + ### Locally running the connector docker image #### Build First, make sure you build the latest Docker image: ``` -docker build . -t airbyte/source-stripe:dev +docker build --no-cache . -t airbyte/source-stripe:dev ``` You can also build the connector image via Gradle: ``` -./gradlew :airbyte-integrations:connectors:source-stripe:airbyteDocker +./gradlew clean :airbyte-integrations:connectors:source-stripe:airbyteDocker ``` When building via Gradle, the docker image name and tag, respectively, are the values of the `io.airbyte.name` and `io.airbyte.version` `LABEL`s in the Dockerfile. diff --git a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml index 1e83389c3e1f..ad6d2b4d088c 100644 --- a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml @@ -5,34 +5,28 @@ tests: connection: - config_path: "secrets/config.json" status: "succeed" - - config_path: "secrets/connected_account_config.json" - status: "succeed" + # - config_path: "secrets/connected_account_config.json" + # status: "succeed" - config_path: "integration_tests/invalid_config.json" status: "failed" discovery: - config_path: "secrets/config.json" - - config_path: "secrets/connected_account_config.json" + # - config_path: "secrets/connected_account_config.json" basic_read: - - config_path: "secrets/config.json" -# Reading a invoice_line_items stream takes too long and falls on timeout. - configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json" - validate_output_from_all_streams: yes - - config_path: "secrets/connected_account_config.json" -# This account has no records for stream Disputes. - configured_catalog_path: "integration_tests/non_disputes_catalog.json" + # Test for subscriptions only with respect to subscription status in ["active","canceled"] + # If this test fails for some reason, please check the expected_subscriptions_statuses_records.json for valid subset of data. + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/all_statuses_subscription_catalog.json" validate_output_from_all_streams: yes + expect_records: + path: "integration_tests/expected_subscriptions_statuses_records.json" + full_refresh: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/configured_catalog.json" incremental: - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json" + configured_catalog_path: "integration_tests/configured_catalog.json" future_state_path: "integration_tests/abnormal_state.json" cursor_paths: charges: [ "created" ] - - config_path: "secrets/connected_account_config.json" - configured_catalog_path: "integration_tests/non_disputes_catalog.json" - future_state_path: "integration_tests/abnormal_state.json" - cursor_paths: - charges: [ "created" ] - full_refresh: - - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json" - - config_path: "secrets/connected_account_config.json" + diff --git a/airbyte-integrations/connectors/source-stripe/build.gradle b/airbyte-integrations/connectors/source-stripe/build.gradle index 7a09719fcec9..5b21d4101215 100644 --- a/airbyte-integrations/connectors/source-stripe/build.gradle +++ b/airbyte-integrations/connectors/source-stripe/build.gradle @@ -1,29 +1,9 @@ plugins { id 'airbyte-python' id 'airbyte-docker' - id 'airbyte-standard-source-test-file' + id 'airbyte-source-acceptance-test' } airbytePython { moduleDirectory 'source_stripe' } - -airbyteStandardSourceTestFile { - // For more information on standard source tests, see https://docs.airbyte.io/contributing-to-airbyte/building-new-connector/testing-connectors - // All these input paths must live inside this connector's directory (or subdirectories) - - specPath = "source_stripe/spec.json" - - // configPath points to a config file which matches the spec.json supplied above. secrets/ is gitignored by default, so place your config file - // there (in case it contains any credentials) - configPath = "secrets/config.json" - - // Note: If your source supports incremental syncing, then make sure that the catalog that is returned in the get_catalog method is configured - // for incremental syncing (e.g. include cursor fields, etc). - configuredCatalogPath = "sample_files/configured_catalog.json" -} - - -dependencies { - implementation files(project(':airbyte-integrations:bases:base-standard-source-test-file').airbyteDocker.outputs) -} diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json b/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json index 79e633b7b4d4..2eabe186fea9 100644 --- a/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json @@ -1,19 +1,18 @@ - -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeFKfIvdgFh3qw", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594766545, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeFKZGFvcdVAAd", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeFKnht1gZEPtM", "object": "subscription_item", "billing_thresholds": null, "created": 1594766546, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeFKfIvdgFh3qw", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeFKfIvdgFh3qw"}, "latest_invoice": "in_1J8OZSIEn5WyEQxnqy1SOqzg", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594766545, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483518}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeFK1tbpVQyzTh", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594766544, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeFKZGFvcdVAAd", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeFKXSUQN7eOnH", "object": "subscription_item", "billing_thresholds": null, "created": 1594766545, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeFK1tbpVQyzTh", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeFK1tbpVQyzTh"}, "latest_invoice": "in_1J8OZTIEn5WyEQxnNUNudevp", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594766544, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483507}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeDBukK9PihZcM", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594758610, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeDBiqbIBM4UJh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeDBYazQdJ4Po3", "object": "subscription_item", "billing_thresholds": null, "created": 1594758611, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeDBukK9PihZcM", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeDBukK9PihZcM"}, "latest_invoice": "in_1J8OZYIEn5WyEQxn5uiaD4Lo", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594758610, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483518}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeDB4t0BlSiCME", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594758610, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeDBiqbIBM4UJh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeDBuWkL41NwUB", "object": "subscription_item", "billing_thresholds": null, "created": 1594758610, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeDB4t0BlSiCME", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeDB4t0BlSiCME"}, "latest_invoice": "in_1J8OZSIEn5WyEQxnP5ljsfai", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594758610, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483508}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeCS8S0a1IV8XN", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594755897, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeCSJwR5Q79Kd1", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeCSxRoIVLLrSW", "object": "subscription_item", "billing_thresholds": null, "created": 1594755897, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeCS8S0a1IV8XN", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeCS8S0a1IV8XN"}, "latest_invoice": "in_1J8OZYIEn5WyEQxn9iKKgbhh", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594755897, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483519}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HeCSmZsP6f6CnQ", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594755896, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeCSJwR5Q79Kd1", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeCSS932OsYGk4", "object": "subscription_item", "billing_thresholds": null, "created": 1594755897, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeCSmZsP6f6CnQ", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeCSmZsP6f6CnQ"}, "latest_invoice": "in_1J8OZdIEn5WyEQxn9oY6Pi1v", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594755896, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483508}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtUSf9ui0NQdD", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685301, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685303, "collection_method": "charge_automatically", "created": 1594685301, "current_period_end": 1597363701, "current_period_start": 1594685301, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685303, "items": {"object": "list", "data": [{"id": "si_HdtURMXtdHa6aS", "object": "subscription_item", "billing_thresholds": null, "created": 1594685302, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtUSf9ui0NQdD", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtUSf9ui0NQdD"}, "latest_invoice": "in_1H4bh3IEn5WyEQxnJQkCFPxc", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685301, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTqUuSenUm4f", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685299, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685303, "collection_method": "charge_automatically", "created": 1594685299, "current_period_end": 1626221299, "current_period_start": 1594685299, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685303, "items": {"object": "list", "data": [{"id": "si_HdtTnlxMRyovMV", "object": "subscription_item", "billing_thresholds": null, "created": 1594685299, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTqUuSenUm4f", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTqUuSenUm4f"}, "latest_invoice": "in_1H4bh1IEn5WyEQxnASiBtfYn", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685299, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTyRyzHADgJS", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685291, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685297, "collection_method": "charge_automatically", "created": 1594685291, "current_period_end": 1597363691, "current_period_start": 1594685291, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685297, "items": {"object": "list", "data": [{"id": "si_HdtTYq1K00CIsC", "object": "subscription_item", "billing_thresholds": null, "created": 1594685291, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTyRyzHADgJS", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTyRyzHADgJS"}, "latest_invoice": "in_1H4bgtIEn5WyEQxn7EqcmMn0", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgwIEn5WyEQxnySC3WgEQ", "start_date": 1594685291, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTSeZhOxBQUD", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685289, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685298, "collection_method": "charge_automatically", "created": 1594685289, "current_period_end": 1626221289, "current_period_start": 1594685289, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685298, "items": {"object": "list", "data": [{"id": "si_HdtT4Cs0EIufwt", "object": "subscription_item", "billing_thresholds": null, "created": 1594685289, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTSeZhOxBQUD", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTSeZhOxBQUD"}, "latest_invoice": "in_1H4bgrIEn5WyEQxnmxcLDpmG", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bguIEn5WyEQxnL1sw9BfJ", "start_date": 1594685289, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTAWL1LLjagi", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685283, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685288, "collection_method": "charge_automatically", "created": 1594685283, "current_period_end": 1597363683, "current_period_start": 1594685283, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685288, "items": {"object": "list", "data": [{"id": "si_HdtTPoc74Uijlv", "object": "subscription_item", "billing_thresholds": null, "created": 1594685284, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTAWL1LLjagi", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTAWL1LLjagi"}, "latest_invoice": "in_1H4bgmIEn5WyEQxnDcrHxhxd", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgnIEn5WyEQxnLrlOBKxM", "start_date": 1594685283, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTDFyQZs22E7", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685281, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685288, "collection_method": "charge_automatically", "created": 1594685281, "current_period_end": 1626221281, "current_period_start": 1594685281, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685288, "items": {"object": "list", "data": [{"id": "si_HdtT1XOQWAsj0s", "object": "subscription_item", "billing_thresholds": null, "created": 1594685281, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTDFyQZs22E7", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTDFyQZs22E7"}, "latest_invoice": "in_1H4bgjIEn5WyEQxn0Neq46ge", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bgnIEn5WyEQxncJIdI1XO", "start_date": 1594685281, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTM7KweIN5vd", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685279, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685280, "collection_method": "charge_automatically", "created": 1594685279, "current_period_end": 1597363679, "current_period_start": 1594685279, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685280, "items": {"object": "list", "data": [{"id": "si_HdtTIQJp2zwmtt", "object": "subscription_item", "billing_thresholds": null, "created": 1594685279, "metadata": {}, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjj6NiOg1NbAn", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTM7KweIN5vd", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTM7KweIN5vd"}, "latest_invoice": "in_1H4bghIEn5WyEQxngN3MRTh6", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685279, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTyV4ncbx4kh", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685275, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685280, "collection_method": "charge_automatically", "created": 1594685275, "current_period_end": 1626221275, "current_period_start": 1594685275, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685280, "items": {"object": "list", "data": [{"id": "si_HdtTz3x2ra4xqn", "object": "subscription_item", "billing_thresholds": null, "created": 1594685275, "metadata": {}, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVENTRVcWmica", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 96000, "unit_amount_decimal": "96000"}, "quantity": 1, "subscription": "sub_HdtTyV4ncbx4kh", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTyV4ncbx4kh"}, "latest_invoice": "in_1H4bgdIEn5WyEQxn7WF60b4m", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685275, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTsPMeQ0DM8I", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685269, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685273, "collection_method": "charge_automatically", "created": 1594685269, "current_period_end": 1597363669, "current_period_start": 1594685269, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685273, "items": {"object": "list", "data": [{"id": "si_HdtTEaSDsGRMHH", "object": "subscription_item", "billing_thresholds": null, "created": 1594685269, "metadata": {}, "plan": {"id": "plan_HHK7OBfHgbZol9", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHK7OBfHgbZol9", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTsPMeQ0DM8I", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTsPMeQ0DM8I"}, "latest_invoice": "in_1H4bgXIEn5WyEQxnHCOSJfmy", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHK7OBfHgbZol9", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgYIEn5WyEQxne8c79IU2", "start_date": 1594685269, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTHGRJgaV3Nk", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685266, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685274, "collection_method": "charge_automatically", "created": 1594685266, "current_period_end": 1597363666, "current_period_start": 1594685266, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685274, "items": {"object": "list", "data": [{"id": "si_HdtTfXoMNlkG8J", "object": "subscription_item", "billing_thresholds": null, "created": 1594685267, "metadata": {}, "plan": {"id": "plan_HCVFonLSv6DxXW", "object": "plan", "active": true, "aggregate_usage": null, "amount": 79900, "amount_decimal": "79900", "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVFonLSv6DxXW", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 79900, "unit_amount_decimal": "79900"}, "quantity": 1, "subscription": "sub_HdtTHGRJgaV3Nk", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTHGRJgaV3Nk"}, "latest_invoice": "in_1H4bgVIEn5WyEQxnl6vct4pW", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVFonLSv6DxXW", "object": "plan", "active": true, "aggregate_usage": null, "amount": 79900, "amount_decimal": "79900", "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bgYIEn5WyEQxnDlLrseFF", "start_date": 1594685266, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtTM1U92xlzu2", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685261, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685266, "collection_method": "charge_automatically", "created": 1594685261, "current_period_end": 1597363661, "current_period_start": 1594685261, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685266, "items": {"object": "list", "data": [{"id": "si_HdtT3vnfY0RYIb", "object": "subscription_item", "billing_thresholds": null, "created": 1594685262, "metadata": {}, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjj6NiOg1NbAn", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTM1U92xlzu2", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTM1U92xlzu2"}, "latest_invoice": "in_1H4bgPIEn5WyEQxnxC16IWhV", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685261, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} -{"type": "RECORD", "record": {"stream": "subscriptions", "data": {"id": "sub_HdtT0ioHvdvWKO", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685262, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685266, "collection_method": "charge_automatically", "created": 1594685259, "current_period_end": 1626221262, "current_period_start": 1594685262, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685266, "items": {"object": "list", "data": [{"id": "si_HdtTYkFZyUqC39", "object": "subscription_item", "billing_thresholds": null, "created": 1594685259, "metadata": {}, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVENTRVcWmica", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 96000, "unit_amount_decimal": "96000"}, "quantity": 1, "subscription": "sub_HdtT0ioHvdvWKO", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtT0ioHvdvWKO"}, "latest_invoice": "in_1H4bgRIEn5WyEQxnCL9OOPIw", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685259, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000}} +{"stream": "subscriptions", "data": {"id": "sub_HeFKfIvdgFh3qw", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594766545, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeFKZGFvcdVAAd", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeFKnht1gZEPtM", "object": "subscription_item", "billing_thresholds": null, "created": 1594766546, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeFKfIvdgFh3qw", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeFKfIvdgFh3qw"}, "latest_invoice": "in_1J8OZSIEn5WyEQxnqy1SOqzg", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594766545, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483518}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HeFK1tbpVQyzTh", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594766544, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeFKZGFvcdVAAd", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeFKXSUQN7eOnH", "object": "subscription_item", "billing_thresholds": null, "created": 1594766545, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeFK1tbpVQyzTh", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeFK1tbpVQyzTh"}, "latest_invoice": "in_1J8OZTIEn5WyEQxnNUNudevp", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594766544, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483507}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HeDBukK9PihZcM", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594758610, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeDBiqbIBM4UJh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeDBYazQdJ4Po3", "object": "subscription_item", "billing_thresholds": null, "created": 1594758611, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeDBukK9PihZcM", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeDBukK9PihZcM"}, "latest_invoice": "in_1J8OZYIEn5WyEQxn5uiaD4Lo", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594758610, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483518}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HeDB4t0BlSiCME", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594758610, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeDBiqbIBM4UJh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeDBuWkL41NwUB", "object": "subscription_item", "billing_thresholds": null, "created": 1594758610, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeDB4t0BlSiCME", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeDB4t0BlSiCME"}, "latest_invoice": "in_1J8OZSIEn5WyEQxnP5ljsfai", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594758610, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483508}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HeCS8S0a1IV8XN", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594755897, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeCSJwR5Q79Kd1", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeCSxRoIVLLrSW", "object": "subscription_item", "billing_thresholds": null, "created": 1594755897, "metadata": {}, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HDfijky2JcM0pm", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HeCS8S0a1IV8XN", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeCS8S0a1IV8XN"}, "latest_invoice": "in_1J8OZYIEn5WyEQxn9iKKgbhh", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HDfijky2JcM0pm", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1588637439, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free-overage", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 5000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594755897, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483519}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HeCSmZsP6f6CnQ", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1596283200, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "collection_method": "charge_automatically", "created": 1594755896, "current_period_end": 1627819200, "current_period_start": 1625140800, "customer": "cus_HeCSJwR5Q79Kd1", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": null, "items": {"object": "list", "data": [{"id": "si_HeCSS932OsYGk4", "object": "subscription_item", "billing_thresholds": null, "created": 1594755897, "metadata": {}, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCaq3bqVvJH4sN", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 0, "unit_amount_decimal": "0"}, "quantity": 1, "subscription": "sub_HeCSmZsP6f6CnQ", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HeCSmZsP6f6CnQ"}, "latest_invoice": "in_1J8OZdIEn5WyEQxn9oY6Pi1v", "livemode": false, "metadata": {"eligibleForTrial": "false"}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCaq3bqVvJH4sN", "object": "plan", "active": true, "aggregate_usage": null, "amount": 0, "amount_decimal": "0", "billing_scheme": "per_unit", "created": 1588388692, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "free", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594755896, "status": "active", "tax_percent": null, "transfer_data": null, "trial_end": 1596283200, "trial_start": 1595483508}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtUSf9ui0NQdD", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685301, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685303, "collection_method": "charge_automatically", "created": 1594685301, "current_period_end": 1597363701, "current_period_start": 1594685301, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685303, "items": {"object": "list", "data": [{"id": "si_HdtURMXtdHa6aS", "object": "subscription_item", "billing_thresholds": null, "created": 1594685302, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtUSf9ui0NQdD", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtUSf9ui0NQdD"}, "latest_invoice": "in_1H4bh3IEn5WyEQxnJQkCFPxc", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685301, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTqUuSenUm4f", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685299, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685303, "collection_method": "charge_automatically", "created": 1594685299, "current_period_end": 1626221299, "current_period_start": 1594685299, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685303, "items": {"object": "list", "data": [{"id": "si_HdtTnlxMRyovMV", "object": "subscription_item", "billing_thresholds": null, "created": 1594685299, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTqUuSenUm4f", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTqUuSenUm4f"}, "latest_invoice": "in_1H4bh1IEn5WyEQxnASiBtfYn", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685299, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTyRyzHADgJS", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685291, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685297, "collection_method": "charge_automatically", "created": 1594685291, "current_period_end": 1597363691, "current_period_start": 1594685291, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685297, "items": {"object": "list", "data": [{"id": "si_HdtTYq1K00CIsC", "object": "subscription_item", "billing_thresholds": null, "created": 1594685291, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTyRyzHADgJS", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTyRyzHADgJS"}, "latest_invoice": "in_1H4bgtIEn5WyEQxn7EqcmMn0", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgwIEn5WyEQxnySC3WgEQ", "start_date": 1594685291, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTSeZhOxBQUD", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685289, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685298, "collection_method": "charge_automatically", "created": 1594685289, "current_period_end": 1626221289, "current_period_start": 1594685289, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685298, "items": {"object": "list", "data": [{"id": "si_HdtT4Cs0EIufwt", "object": "subscription_item", "billing_thresholds": null, "created": 1594685289, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTSeZhOxBQUD", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTSeZhOxBQUD"}, "latest_invoice": "in_1H4bgrIEn5WyEQxnmxcLDpmG", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bguIEn5WyEQxnL1sw9BfJ", "start_date": 1594685289, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTAWL1LLjagi", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685283, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685288, "collection_method": "charge_automatically", "created": 1594685283, "current_period_end": 1597363683, "current_period_start": 1594685283, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685288, "items": {"object": "list", "data": [{"id": "si_HdtTPoc74Uijlv", "object": "subscription_item", "billing_thresholds": null, "created": 1594685284, "metadata": {}, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjkXvK8l2hjJ1", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTAWL1LLjagi", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTAWL1LLjagi"}, "latest_invoice": "in_1H4bgmIEn5WyEQxnDcrHxhxd", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjkXvK8l2hjJ1", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574996, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgnIEn5WyEQxnLrlOBKxM", "start_date": 1594685283, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTDFyQZs22E7", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685281, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685288, "collection_method": "charge_automatically", "created": 1594685281, "current_period_end": 1626221281, "current_period_start": 1594685281, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685288, "items": {"object": "list", "data": [{"id": "si_HdtT1XOQWAsj0s", "object": "subscription_item", "billing_thresholds": null, "created": 1594685281, "metadata": {}, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVGOY9hzMEOFQ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 780000, "unit_amount_decimal": "780000"}, "quantity": 1, "subscription": "sub_HdtTDFyQZs22E7", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTDFyQZs22E7"}, "latest_invoice": "in_1H4bgjIEn5WyEQxn0Neq46ge", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVGOY9hzMEOFQ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 780000, "amount_decimal": "780000", "billing_scheme": "per_unit", "created": 1588367928, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bgnIEn5WyEQxncJIdI1XO", "start_date": 1594685281, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTM7KweIN5vd", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685279, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685280, "collection_method": "charge_automatically", "created": 1594685279, "current_period_end": 1597363679, "current_period_start": 1594685279, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685280, "items": {"object": "list", "data": [{"id": "si_HdtTIQJp2zwmtt", "object": "subscription_item", "billing_thresholds": null, "created": 1594685279, "metadata": {}, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjj6NiOg1NbAn", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTM7KweIN5vd", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTM7KweIN5vd"}, "latest_invoice": "in_1H4bghIEn5WyEQxngN3MRTh6", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685279, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTyV4ncbx4kh", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685275, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685280, "collection_method": "charge_automatically", "created": 1594685275, "current_period_end": 1626221275, "current_period_start": 1594685275, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685280, "items": {"object": "list", "data": [{"id": "si_HdtTz3x2ra4xqn", "object": "subscription_item", "billing_thresholds": null, "created": 1594685275, "metadata": {}, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVENTRVcWmica", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 96000, "unit_amount_decimal": "96000"}, "quantity": 1, "subscription": "sub_HdtTyV4ncbx4kh", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTyV4ncbx4kh"}, "latest_invoice": "in_1H4bgdIEn5WyEQxn7WF60b4m", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685275, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTsPMeQ0DM8I", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685269, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685273, "collection_method": "charge_automatically", "created": 1594685269, "current_period_end": 1597363669, "current_period_start": 1594685269, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685273, "items": {"object": "list", "data": [{"id": "si_HdtTEaSDsGRMHH", "object": "subscription_item", "billing_thresholds": null, "created": 1594685269, "metadata": {}, "plan": {"id": "plan_HHK7OBfHgbZol9", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHK7OBfHgbZol9", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTsPMeQ0DM8I", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTsPMeQ0DM8I"}, "latest_invoice": "in_1H4bgXIEn5WyEQxnHCOSJfmy", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHK7OBfHgbZol9", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589479670, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-overage-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 250000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": "sub_sched_1H4bgYIEn5WyEQxne8c79IU2", "start_date": 1594685269, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTHGRJgaV3Nk", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685266, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685274, "collection_method": "charge_automatically", "created": 1594685266, "current_period_end": 1597363666, "current_period_start": 1594685266, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685274, "items": {"object": "list", "data": [{"id": "si_HdtTfXoMNlkG8J", "object": "subscription_item", "billing_thresholds": null, "created": 1594685267, "metadata": {}, "plan": {"id": "plan_HCVFonLSv6DxXW", "object": "plan", "active": true, "aggregate_usage": null, "amount": 79900, "amount_decimal": "79900", "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVFonLSv6DxXW", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 79900, "unit_amount_decimal": "79900"}, "quantity": 1, "subscription": "sub_HdtTHGRJgaV3Nk", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTHGRJgaV3Nk"}, "latest_invoice": "in_1H4bgVIEn5WyEQxnl6vct4pW", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVFonLSv6DxXW", "object": "plan", "active": true, "aggregate_usage": null, "amount": 79900, "amount_decimal": "79900", "billing_scheme": "per_unit", "created": 1588367891, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "growth-monthly", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": "sub_sched_1H4bgYIEn5WyEQxnDlLrseFF", "start_date": 1594685266, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtTM1U92xlzu2", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685261, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685266, "collection_method": "charge_automatically", "created": 1594685261, "current_period_end": 1597363661, "current_period_start": 1594685261, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685266, "items": {"object": "list", "data": [{"id": "si_HdtT3vnfY0RYIb", "object": "subscription_item", "billing_thresholds": null, "created": 1594685262, "metadata": {}, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "price": {"id": "plan_HHjj6NiOg1NbAn", "object": "price", "active": true, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": "sum", "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "metered"}, "tiers_mode": "graduated", "transform_quantity": null, "type": "recurring", "unit_amount": null, "unit_amount_decimal": null}, "subscription": "sub_HdtTM1U92xlzu2", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtTM1U92xlzu2"}, "latest_invoice": "in_1H4bgPIEn5WyEQxnxC16IWhV", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HHjj6NiOg1NbAn", "object": "plan", "active": true, "aggregate_usage": "sum", "amount": null, "amount_decimal": null, "billing_scheme": "tiered", "created": 1589574976, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-overage-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": [{"flat_amount": null, "flat_amount_decimal": null, "unit_amount": 0, "unit_amount_decimal": "0", "up_to": 50000}, {"flat_amount": null, "flat_amount_decimal": null, "unit_amount": null, "unit_amount_decimal": "0.2", "up_to": null}], "tiers_mode": "graduated", "transform_usage": null, "trial_period_days": null, "usage_type": "metered"}, "quantity": 1, "schedule": null, "start_date": 1594685261, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} +{"stream": "subscriptions", "data": {"id": "sub_HdtT0ioHvdvWKO", "object": "subscription", "application_fee_percent": null, "automatic_tax": {"enabled": false}, "billing_cycle_anchor": 1594685262, "billing_thresholds": null, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": 1594685266, "collection_method": "charge_automatically", "created": 1594685259, "current_period_end": 1626221262, "current_period_start": 1594685262, "customer": "cus_HDZxYYMYcazf3v", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "discount": null, "ended_at": 1594685266, "items": {"object": "list", "data": [{"id": "si_HdtTYkFZyUqC39", "object": "subscription_item", "billing_thresholds": null, "created": 1594685259, "metadata": {}, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "price": {"id": "plan_HCVENTRVcWmica", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "livemode": false, "lookup_key": null, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "recurring": {"aggregate_usage": null, "interval": "year", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed"}, "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 96000, "unit_amount_decimal": "96000"}, "quantity": 1, "subscription": "sub_HdtT0ioHvdvWKO", "tax_rates": []}], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_HdtT0ioHvdvWKO"}, "latest_invoice": "in_1H4bgRIEn5WyEQxnCL9OOPIw", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "pause_collection": null, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "plan": {"id": "plan_HCVENTRVcWmica", "object": "plan", "active": true, "aggregate_usage": null, "amount": 96000, "amount_decimal": "96000", "billing_scheme": "per_unit", "created": 1588367806, "currency": "usd", "interval": "year", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": "starter-annual", "product": "prod_H07MQuAFARZ6K6", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed"}, "quantity": 1, "schedule": null, "start_date": 1594685259, "status": "canceled", "tax_percent": null, "transfer_data": null, "trial_end": null, "trial_start": null}, "emitted_at": 1626172757000} diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json index 1f7748ed3536..03bef53d530b 100644 --- a/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json @@ -1385,11 +1385,599 @@ { "type": ["null", "array"], "items": { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } }, { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } ] }, @@ -1499,7 +2087,82 @@ } }, "discount": { - "$ref": "shared/discount.json#/" + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } }, "account_balance": { "type": ["null", "integer"] diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json index f40ea63c72fd..7ac06977b7ed 100644 --- a/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json @@ -1385,11 +1385,599 @@ { "type": ["null", "array"], "items": { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } }, { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } ] }, @@ -1499,7 +2087,82 @@ } }, "discount": { - "$ref": "shared/discount.json#/" + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } }, "account_balance": { "type": ["null", "integer"] diff --git a/airbyte-integrations/connectors/source-stripe/sample_files/configured_catalog.json b/airbyte-integrations/connectors/source-stripe/sample_files/configured_catalog.json index 14b13dd02ac4..491ad3cdc82e 100644 --- a/airbyte-integrations/connectors/source-stripe/sample_files/configured_catalog.json +++ b/airbyte-integrations/connectors/source-stripe/sample_files/configured_catalog.json @@ -1385,11 +1385,599 @@ { "type": ["null", "array"], "items": { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } }, { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } ] }, @@ -1499,7 +2087,82 @@ } }, "discount": { - "$ref": "shared/discount.json#/" + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } }, "account_balance": { "type": ["null", "integer"] diff --git a/airbyte-integrations/connectors/source-stripe/setup.py b/airbyte-integrations/connectors/source-stripe/setup.py index b4d0c62d8365..4d757e127e0d 100644 --- a/airbyte-integrations/connectors/source-stripe/setup.py +++ b/airbyte-integrations/connectors/source-stripe/setup.py @@ -25,15 +25,22 @@ from setuptools import find_packages, setup +MAIN_REQUIREMENTS = ["airbyte-cdk", "stripe"] + +TEST_REQUIREMENTS = [ + "pytest~=6.1", + "source-acceptance-test", +] + setup( name="source_stripe", description="Source implementation for Stripe.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), + install_requires=MAIN_REQUIREMENTS, package_data={"": ["*.json", "schemas/*.json", "schemas/shared/*.json"]}, - install_requires=["airbyte-cdk==0.1.2", "stripe"], extras_require={ - "tests": ["pytest==6.1.2"], + "tests": TEST_REQUIREMENTS, }, ) diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json index 45617ba76b3d..a2e6910003e9 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json @@ -105,11 +105,599 @@ { "type": ["null", "array"], "items": { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } }, { - "$ref": "shared/source.json#/" + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } } ] }, @@ -219,7 +807,82 @@ } }, "discount": { - "$ref": "shared/discount.json#/" + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } }, "account_balance": { "type": ["null", "integer"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscriptions.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscriptions.json index 085a986b3614..481c4192424e 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscriptions.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscriptions.json @@ -6,8 +6,7 @@ "properties": {} }, "canceled_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "livemode": { "type": ["null", "boolean"] @@ -17,24 +16,36 @@ "format": "date-time" }, "items": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } }, "id": { "type": ["null", "string"] }, "trial_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "application_fee_percent": { "type": ["null", "number"] }, "billing_cycle_anchor": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "cancel_at_period_end": { "type": ["null", "boolean"] @@ -107,9 +118,8 @@ "customer": { "type": ["null", "string"] }, - "start": { - "type": ["null", "string"], - "format": "date-time" + "start_date": { + "type": ["null", "number"] }, "object": { "type": ["null", "string"] @@ -120,8 +130,7 @@ } }, "current_period_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "plan": { "type": ["null", "object"], @@ -225,19 +234,16 @@ "type": ["null", "integer"] }, "ended_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "customer": { "type": ["null", "string"] }, "current_period_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "trial_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "object": { "type": ["null", "string"] From 47677eb5b247b44f1ea2d1ee1cc42ff8f7fcc22a Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 15:29:42 +0300 Subject: [PATCH 08/24] changed setup.py, remove source-acceptance-test dependency --- airbyte-integrations/connectors/source-stripe/setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-stripe/setup.py b/airbyte-integrations/connectors/source-stripe/setup.py index 4d757e127e0d..470add42946c 100644 --- a/airbyte-integrations/connectors/source-stripe/setup.py +++ b/airbyte-integrations/connectors/source-stripe/setup.py @@ -29,7 +29,6 @@ TEST_REQUIREMENTS = [ "pytest~=6.1", - "source-acceptance-test", ] setup( From 131a5ee9dc30353c6fb78f24757ac94363fb8172 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 15:48:56 +0300 Subject: [PATCH 09/24] added all_statuses_subscription_catalog.json, changed docs --- .../all_statuses_subscription_catalog.json | 272 ++++++++++++++++++ .../source-acceptance-tests.md | 12 + 2 files changed, 284 insertions(+) create mode 100644 airbyte-integrations/connectors/source-stripe/integration_tests/all_statuses_subscription_catalog.json diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/all_statuses_subscription_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/all_statuses_subscription_catalog.json new file mode 100644 index 000000000000..7d9bc193da63 --- /dev/null +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/all_statuses_subscription_catalog.json @@ -0,0 +1,272 @@ +{ + "streams": [ + { + "stream": { + "name": "subscriptions", + "json_schema": { + "type": ["object", "null"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "canceled_at": { + "type": ["null", "number"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "items": { + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "id": { + "type": ["null", "string"] + }, + "trial_start": { + "type": ["null", "number"] + }, + "application_fee_percent": { + "type": ["null", "number"] + }, + "billing_cycle_anchor": { + "type": ["null", "number"] + }, + "cancel_at_period_end": { + "type": ["null", "boolean"] + }, + "tax_percent": { + "type": ["null", "number"] + }, + "discount": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "number"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "number"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "number"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "number"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "number"] + }, + "created": { + "type": ["null", "number"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start_date": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "current_period_end": { + "type": ["null", "number"] + }, + "plan": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "product": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "id": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "integer", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "created": { + "type": ["null", "integer"] + }, + "nickname": { + "type": ["null", "string"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + } + } + }, + "billing": { + "type": ["null", "string"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "days_until_due": { + "type": ["null", "integer"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "ended_at": { + "type": ["null", "number"] + }, + "customer": { + "type": ["null", "string"] + }, + "current_period_start": { + "type": ["null", "number"] + }, + "trial_end": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + } + ] +} diff --git a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md index 69292f7a6347..ffd5c11f1ec0 100644 --- a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md +++ b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md @@ -67,6 +67,18 @@ Configuring all streams in the input catalog to full refresh mode verifies that |||x| |||| +# Example of `expected_records.json`: +In general, the expected_records.json should contain the subset of output of the records of particular stream you need to test. +The required fields are: `stream, data, emitted_at` + +```JSON +{"stream": "my_stream", "data": {"field_1": "value0", "field_2": "value0", "field_3": null, "field_4": {"is_true": true}, "field_5": 123}, "emitted_at": 1626172757000} +{"stream": "my_stream", "data": {"field_1": "value1", "field_2": "value1", "field_3": null, "field_4": {"is_true": false}, "field_5": 456}, "emitted_at": 1626172757000} +{"stream": "my_stream", "data": {"field_1": "value2", "field_2": "value2", "field_3": null, "field_4": {"is_true": true}, "field_5": 678}, "emitted_at": 1626172757000} +{"stream": "my_stream", "data": {"field_1": "value3", "field_2": "value3", "field_3": null, "field_4": {"is_true": false}, "field_5": 91011}, "emitted_at": 1626172757000} + +``` + ## Test Full Refresh sync ### TestSequentialReads From 1f32efa842b7a67c2e74f8e41688f6dd091cbfd0 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 15:51:27 +0300 Subject: [PATCH 10/24] changed docs --- .../building-new-connector/source-acceptance-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md index ffd5c11f1ec0..60cf7497c7d1 100644 --- a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md +++ b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md @@ -67,7 +67,7 @@ Configuring all streams in the input catalog to full refresh mode verifies that |||x| |||| -# Example of `expected_records.json`: +## Example of `expected_records.json`: In general, the expected_records.json should contain the subset of output of the records of particular stream you need to test. The required fields are: `stream, data, emitted_at` From a0fe6c2bfcd80a0ea30f0d51be15f73979bbb40e Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 15:51:57 +0300 Subject: [PATCH 11/24] changed docs --- .../building-new-connector/source-acceptance-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md index 60cf7497c7d1..d6384208112a 100644 --- a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md +++ b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md @@ -67,7 +67,7 @@ Configuring all streams in the input catalog to full refresh mode verifies that |||x| |||| -## Example of `expected_records.json`: +### Example of `expected_records.json`: In general, the expected_records.json should contain the subset of output of the records of particular stream you need to test. The required fields are: `stream, data, emitted_at` From 0da30a4065860d8ec4383a81efeba6c245f49245 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 15:59:35 +0300 Subject: [PATCH 12/24] added configured_catalog.json for acceptance-tests --- .../integration_tests/configured_catalog.json | 3662 +++++++++++++++++ 1 file changed, 3662 insertions(+) create mode 100644 airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json new file mode 100644 index 000000000000..7e1d29ceea4e --- /dev/null +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json @@ -0,0 +1,3662 @@ +{ + "streams": [ + { + "stream": { + "name": "bank_accounts", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "account_holder_name": { + "type": ["null", "string"] + }, + "account_holder_type": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "routing_number": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "balance_transactions", + "json_schema": { + "properties": { + "fee": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "source": { + "type": ["null", "string"] + }, + "fee_details": { + "type": ["null", "array"], + "items": { + "properties": { + "application": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + } + }, + "type": ["null", "object"] + } + }, + "available_on": { + "type": ["null", "integer"] + }, + "status": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "net": { + "type": ["null", "integer"] + }, + "exchange_rate": { + "type": ["null", "number"] + }, + "type": { + "type": ["null", "string"] + }, + "sourced_transfers": { + "items": {}, + "type": ["null", "array"] + }, + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "amount": { + "type": ["null", "integer"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + }, + "type": ["null", "object"] + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "charges", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "fraud_details": { + "type": ["null", "object"], + "properties": { + "stripe_report": { + "type": ["null", "string"] + } + } + }, + "transfer_group": { + "type": ["null", "string"] + }, + "on_behalf_of": { + "type": ["null", "string"] + }, + "review": { + "type": ["null", "string"] + }, + "failure_message": { + "type": ["null", "string"] + }, + "receipt_email": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "source": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } + }, + "destination": { + "type": ["null", "string"] + }, + "id": { + "type": ["string"] + }, + "object": { + "type": ["null", "string"] + }, + "outcome": { + "type": ["null", "object"], + "properties": { + "type": { + "type": ["null", "string"] + }, + "seller_message": { + "type": ["null", "string"] + }, + "reason": { + "type": ["null", "string"] + }, + "risk_level": { + "type": ["null", "string"] + }, + "network_status": { + "type": ["null", "string"] + }, + "risk_score": { + "type": ["null", "integer"] + } + } + }, + "status": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "order": { + "type": ["null", "string"] + }, + "application": { + "type": ["null", "string"] + }, + "refunded": { + "type": ["null", "boolean"] + }, + "receipt_number": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "captured": { + "type": ["null", "boolean"] + }, + "paid": { + "type": ["null", "boolean"] + }, + "shipping": { + "type": ["null", "object"], + "properties": {} + }, + "invoice": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "customer": { + "type": ["null", "string"] + }, + "payment_intent": { + "type": ["null", "string"] + }, + "source_transfer": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "refunds": { + "type": ["null", "array"], + "items": {} + }, + "application_fee": { + "type": ["null", "string"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "exp_month": { + "type": ["null", "integer"] + }, + "address_state": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "payment_method_details": { + "type": ["null", "object"], + "properties": { + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "account_number": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + } + } + }, + "ach_debit": { + "type": ["null", "object"], + "properties": { + "account_holder_type": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + } + } + }, + "alipay": { + "type": ["null", "object"] + }, + "bancontact": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "iban_last4": { + "type": ["null", "string"] + }, + "preferred_language": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "card": { + "type": ["null", "object"], + "properties": { + "brand": { + "type": ["null", "string"] + }, + "checks": { + "type": ["null", "object"], + "properties": { + "address_line1_check": { + "type": ["null", "string"] + }, + "address_postal_code_check": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + } + } + }, + "country": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "installments": { + "type": ["null", "object"], + "properties": { + "plan": { + "type": ["null", "object"], + "properties": { + "count": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + } + } + }, + "last4": { + "type": ["null", "string"] + }, + "network": { + "type": ["null", "string"] + }, + "three_d_secure": { + "type": ["null", "object"], + "properties": { + "authenticated": { + "type": ["null", "boolean"] + }, + "succeeded": { + "type": ["null", "boolean"] + }, + "version": { + "type": ["null", "string"] + } + } + }, + "wallet": { + "type": ["null", "object"], + "properties": { + "amex_express_checkout": { + "type": ["null", "object"], + "properties": {} + }, + "apple_pay": { + "type": ["null", "object"], + "properties": {} + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "google_pay": { + "type": ["null", "object"], + "properties": {} + }, + "masterpass": { + "type": ["null", "object"], + "properties": { + "billing_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + }, + "email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "shipping_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + } + } + }, + "samsung_pay": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "visa_checkout": { + "type": ["null", "object"], + "properties": { + "billing_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + }, + "email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "shipping_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + } + } + } + } + }, + "card_present": { + "type": ["null", "object"], + "properties": { + "brand": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "emv_auth_data": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "generated_card": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "network": { + "type": ["null", "string"] + }, + "read_method": { + "type": ["null", "string"] + }, + "receipt": { + "type": ["null", "object"], + "properties": { + "application_cryptogram": { + "type": ["null", "string"] + }, + "application_preferred_name": { + "type": ["null", "string"] + }, + "authorization_code": { + "type": ["null", "string"] + }, + "authorization_response_code": { + "type": ["null", "string"] + }, + "cardholder_verification_method": { + "type": ["null", "string"] + }, + "dedicated_file_name": { + "type": ["null", "string"] + }, + "terminal_verification_results": { + "type": ["null", "string"] + }, + "transaction_status_information": { + "type": ["null", "string"] + } + } + } + } + }, + "eps": { + "type": ["null", "object"], + "properties": { + "verified_name": { + "type": ["null", "string"] + } + } + }, + "giropay": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "ideal": { + "type": ["null", "object"], + "properties": { + "bank": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "iban_last4": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "klarna": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": { + "entity": { + "type": ["null", "string"] + }, + "reference": { + "type": ["null", "string"] + } + } + }, + "p24": { + "type": ["null", "object"], + "properties": { + "reference": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "sepa_debit": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "branch_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "mandate": { + "type": ["null", "string"] + } + } + }, + "sofort": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "iban_last4": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "stripe_account": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "wechat": { + "type": ["null", "object"], + "properties": {} + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "address_state": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + } + } + }, + "type": { + "type": ["null", "string"] + } + } + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "amount_refunded": { + "type": ["null", "integer"] + }, + "failure_code": { + "type": ["null", "string"] + }, + "dispute": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "coupons", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "valid": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "integer"] + }, + "percent_off": { + "type": ["null", "number"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "customers", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "preferred_locales": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "invoice_settings": { + "type": ["null", "object"], + "properties": { + "custom_fields": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "default_payment_method": { + "type": ["null", "string"] + }, + "footer": { + "type": ["null", "string"] + } + } + }, + "name": { + "type": ["null", "string"] + }, + "tax_exempt": { + "type": ["null", "string"] + }, + "next_invoice_sequence": { + "type": ["null", "integer"] + }, + "balance": { + "type": ["null", "integer"] + }, + "phone": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + }, + "shipping": { + "type": ["null", "object"], + "properties": { + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + } + } + }, + "sources": { + "anyOf": [ + { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } + } + }, + { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } + } + ] + }, + "delinquent": { + "type": ["null", "boolean"] + }, + "description": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "default_source": { + "type": ["null", "string"] + }, + "cards": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "object": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address_state": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + } + }, + "email": { + "type": ["null", "string"] + }, + "default_card": { + "type": ["null", "string"] + }, + "subscriptions": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "discount": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "account_balance": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "invoice_prefix": { + "type": ["null", "string"] + }, + "tax_info_verification": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "tax_info": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "customer_balance_transactions", + "json_schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "object": { + "type": "string" + }, + "amount": { + "type": "integer" + }, + "created": { + "type": "integer" + }, + "credit_note": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "customer": { + "type": "string" + }, + "description": { + "type": "string" + }, + "ending_balance": { + "type": "integer" + }, + "invoice": { + "type": "string" + }, + "livemode": { + "type": "boolean" + }, + "metadata": { + "type": "object", + "additionalProperties": true + }, + "type": { + "type": "string" + } + } + }, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "disputes", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transactions": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["string"] + } + } + } + }, + "charge": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "evidence": { + "type": ["null", "string", "object"], + "properties": { + "refund_policy": { + "type": ["null", "string"] + }, + "shipping_address": { + "type": ["null", "string"] + }, + "duplicate_charge_explanation": { + "type": ["null", "string"] + }, + "shipping_tracking_number": { + "type": ["null", "string"] + }, + "customer_signature": { + "type": ["null", "string"] + }, + "uncategorized_text": { + "type": ["null", "string"] + }, + "cancellation_policy_disclosure": { + "type": ["null", "string"] + }, + "refund_policy_disclosure": { + "type": ["null", "string"] + }, + "receipt": { + "type": ["null", "string"] + }, + "customer_name": { + "type": ["null", "string"] + }, + "refund_refusal_explanation": { + "type": ["null", "string"] + }, + "cancellation_rebuttal": { + "type": ["null", "string"] + }, + "product_description": { + "type": ["null", "string"] + }, + "shipping_date": { + "type": ["null", "string"] + }, + "customer_email_address": { + "type": ["null", "string"] + }, + "duplicate_charge_id": { + "type": ["null", "string"] + }, + "shipping_documentation": { + "type": ["null", "string"] + }, + "access_activity_log": { + "type": ["null", "string"] + }, + "customer_purchase_ip": { + "type": ["null", "string"] + }, + "service_date": { + "type": ["null", "string"] + }, + "shipping_carrier": { + "type": ["null", "string"] + }, + "service_documentation": { + "type": ["null", "string"] + }, + "duplicate_charge_documentation": { + "type": ["null", "string"] + }, + "cancellation_policy": { + "type": ["null", "string"] + }, + "customer_communication": { + "type": ["null", "string"] + }, + "uncategorized_file": { + "type": ["null", "string"] + }, + "billing_address": { + "type": ["null", "string"] + } + } + }, + "evidence_details": { + "type": ["null", "object"], + "properties": { + "due_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "has_evidence": { + "type": ["null", "boolean"] + }, + "past_due": { + "type": ["null", "boolean"] + }, + "submission_count": { + "type": ["null", "integer"] + } + } + }, + "is_charge_refundable": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "reason": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "events", + "json_schema": { + "type": "object", + "properties": { + "created": { + "type": ["null", "integer"] + }, + "data": { + "type": ["null", "object"], + "properties": {} + }, + "id": { + "type": ["null", "string"] + }, + "api_version": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "pending_webhooks": { + "type": ["null", "integer"] + }, + "request": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "invoice_items", + "json_schema": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "integer"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "plan": { + "type": ["null", "object", "string"], + "properties": { + "nickname": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "string", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "object": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "product": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "invoice": { + "type": ["null", "string"] + }, + "period": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "quantity": { + "type": ["null", "integer"] + }, + "description": { + "type": ["null", "string"] + }, + "date": { + "type": ["null", "integer"] + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "discountable": { + "type": ["null", "boolean"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "proration": { + "type": ["null", "boolean"] + }, + "subscription_item": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["date"] + }, + { + "stream": { + "name": "invoices", + "json_schema": { + "type": ["null", "object"], + "properties": { + "date": { + "type": ["null", "integer"] + }, + "next_payment_attempt": { + "type": ["null", "string"], + "format": "date-time" + }, + "tax": { + "type": ["null", "integer"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "charge": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "receipt_number": { + "type": ["null", "string"] + }, + "attempt_count": { + "type": ["null", "integer"] + }, + "payment": { + "type": ["null", "string"] + }, + "amount_paid": { + "type": ["null", "integer"] + }, + "due_date": { + "type": ["null", "string"], + "format": "date-time" + }, + "id": { + "type": ["null", "string"] + }, + "webhooks_delivered_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "hosted_invoice_url": { + "type": ["null", "string"] + }, + "period_end": { + "type": ["null", "string"], + "format": "date-time" + }, + "amount_remaining": { + "type": ["null", "integer"] + }, + "tax_percent": { + "type": ["null", "number"] + }, + "billing": { + "type": ["null", "string"] + }, + "auto_advance": { + "type": ["null", "boolean"] + }, + "paid": { + "type": ["null", "boolean"] + }, + "discount": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "integer"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "number": { + "type": ["null", "string"] + }, + "billing_reason": { + "type": ["null", "string"] + }, + "ending_balance": { + "type": ["null", "integer"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "period_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "attempted": { + "type": ["null", "boolean"] + }, + "closed": { + "type": ["null", "boolean"] + }, + "invoice_pdf": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "subtotal": { + "type": ["null", "integer"] + }, + "application_fee": { + "type": ["null", "integer"] + }, + "lines": { + "type": ["null", "array", "object"], + "items": { + "type": ["null", "string"] + }, + "properties": {} + }, + "forgiven": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "starting_balance": { + "type": ["null", "integer"] + }, + "amount_due": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "total": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "plans", + "json_schema": { + "type": ["null", "object", "string"], + "properties": { + "nickname": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "string", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "object": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "product": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "payouts", + "json_schema": { + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "failure_code": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "amount_reversed": { + "type": ["null", "integer"] + }, + "source_type": { + "type": ["null", "string"] + }, + "bank_account": { + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "routing_number": { + "type": ["null", "string"] + }, + "account_holder_type": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "account_holder_name": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + } + }, + "type": ["null", "object"] + }, + "date": { + "type": ["null", "string"], + "format": "date-time" + }, + "method": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "failure_message": { + "type": ["null", "string"] + }, + "failure_balance_transaction": { + "type": ["null", "string"] + }, + "recipient": { + "type": ["null", "string"] + }, + "destination": { + "type": ["null", "string"] + }, + "automatic": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "transfer_group": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "arrival_date": { + "type": ["null", "string"], + "format": "date-time" + }, + "description": { + "type": ["null", "string"] + }, + "source_transaction": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + }, + "type": ["null", "object"] + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "products", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "attributes": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "caption": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "deactivate_on": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "description": { + "type": ["null", "string"] + }, + "images": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "livemode": { + "type": ["null", "boolean"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "name": { + "type": ["null", "string"] + }, + "package_dimensions": { + "type": ["null", "object"], + "properties": { + "width": { + "type": ["null", "number"] + }, + "length": { + "type": ["null", "number"] + }, + "weight": { + "type": ["null", "number"] + }, + "height": { + "type": ["null", "number"] + } + } + }, + "shippable": { + "type": ["null", "boolean"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "unit_label": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + }, + "url": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "subscriptions", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "canceled_at": { + "type": ["null", "number"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "items": { + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "id": { + "type": ["null", "string"] + }, + "trial_start": { + "type": ["null", "number"] + }, + "application_fee_percent": { + "type": ["null", "number"] + }, + "billing_cycle_anchor": { + "type": ["null", "number"] + }, + "cancel_at_period_end": { + "type": ["null", "boolean"] + }, + "tax_percent": { + "type": ["null", "number"] + }, + "discount": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "number"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "number"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "number"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "number"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "number"] + }, + "created": { + "type": ["null", "number"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start_date": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "current_period_end": { + "type": ["null", "number"] + }, + "plan": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "product": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "id": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "integer", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "created": { + "type": ["null", "integer"] + }, + "nickname": { + "type": ["null", "string"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + } + } + }, + "billing": { + "type": ["null", "string"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "days_until_due": { + "type": ["null", "integer"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "ended_at": { + "type": ["null", "number"] + }, + "customer": { + "type": ["null", "string"] + }, + "current_period_start": { + "type": ["null", "number"] + }, + "trial_end": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "refunds", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "charge": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "payment_intent": { + "type": ["null", "string"] + }, + "reason": { + "type": ["null", "string"] + }, + "receipt_number": { + "type": ["null", "string"] + }, + "source_transfer_reversal": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "transfer_reversal": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "transfers", + "json_schema": { + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "reversals": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": {} + } + }, + "id": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "reversed": { + "type": ["null", "boolean"] + }, + "created": { + "type": ["null", "integer"] + }, + "amount_reversed": { + "type": ["null", "integer"] + }, + "source_type": { + "type": ["null", "string"] + }, + "source_transaction": { + "type": ["null", "string"] + }, + "date": { + "type": ["null", "string"], + "format": "date-time" + }, + "livemode": { + "type": ["null", "boolean"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "failure_balance_transaction": { + "type": ["null", "string"] + }, + "recipient": { + "type": ["null", "string"] + }, + "destination": { + "type": ["null", "string"] + }, + "automatic": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "transfer_group": { + "type": ["null", "string"] + }, + "arrival_date": { + "type": ["null", "string"], + "format": "date-time" + }, + "description": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + }, + "type": ["null", "object"] + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + } + ] +} From 1aea3cda28022f7cb6306ca66080ba9368640ec8 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 16:33:39 +0300 Subject: [PATCH 13/24] small changes to acceptance-test --- .../source-stripe/acceptance-test-config.yml | 12 ++++-------- ...ords.json => expected_subscriptions_records.json} | 0 ...iption_catalog.json => subscription_catalog.json} | 0 3 files changed, 4 insertions(+), 8 deletions(-) rename airbyte-integrations/connectors/source-stripe/integration_tests/{expected_subscriptions_statuses_records.json => expected_subscriptions_records.json} (100%) rename airbyte-integrations/connectors/source-stripe/integration_tests/{all_statuses_subscription_catalog.json => subscription_catalog.json} (100%) diff --git a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml index ad6d2b4d088c..50007da74e45 100644 --- a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml @@ -5,21 +5,18 @@ tests: connection: - config_path: "secrets/config.json" status: "succeed" - # - config_path: "secrets/connected_account_config.json" - # status: "succeed" - config_path: "integration_tests/invalid_config.json" status: "failed" discovery: - config_path: "secrets/config.json" - # - config_path: "secrets/connected_account_config.json" basic_read: # Test for subscriptions only with respect to subscription status in ["active","canceled"] # If this test fails for some reason, please check the expected_subscriptions_statuses_records.json for valid subset of data. - - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/all_statuses_subscription_catalog.json" + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/subscription_catalog.json" validate_output_from_all_streams: yes expect_records: - path: "integration_tests/expected_subscriptions_statuses_records.json" + path: "integration_tests/expected_subscriptions_records.json" full_refresh: - config_path: "secrets/config.json" configured_catalog_path: "integration_tests/configured_catalog.json" @@ -28,5 +25,4 @@ tests: configured_catalog_path: "integration_tests/configured_catalog.json" future_state_path: "integration_tests/abnormal_state.json" cursor_paths: - charges: [ "created" ] - + charges: ["created"] diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json b/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_records.json similarity index 100% rename from airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_statuses_records.json rename to airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_records.json diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/all_statuses_subscription_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/subscription_catalog.json similarity index 100% rename from airbyte-integrations/connectors/source-stripe/integration_tests/all_statuses_subscription_catalog.json rename to airbyte-integrations/connectors/source-stripe/integration_tests/subscription_catalog.json From 9faf8dbf6b896a5e20581d9a5eac07ee358db054 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 16:44:18 +0300 Subject: [PATCH 14/24] changed ci_credentials.sh, removed source-stripe connected_account_config secret --- tools/bin/ci_credentials.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index 3f4a438281ca..81c4baa2f9ff 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -89,7 +89,7 @@ write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" write_standard_creds source-stripe "$STRIPE_INTEGRATION_TEST_CREDS" -write_standard_creds source-stripe "$STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS" "connected_account_config.json" +# write_standard_creds source-stripe "$STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS" "connected_account_config.json" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 110e0dff53c25a3fb646dff91655486dc7831a1d Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 17:35:52 +0300 Subject: [PATCH 15/24] changed ci_credentials.sh to use connected_account_config.json --- .../source-stripe/acceptance-test-config.yml | 10 +++++----- tools/bin/ci_credentials.sh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml index 50007da74e45..d660f382685f 100644 --- a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml @@ -3,25 +3,25 @@ tests: spec: - spec_path: "source_stripe/spec.json" connection: - - config_path: "secrets/config.json" + - config_path: "secrets/connected_account_config.json" status: "succeed" - config_path: "integration_tests/invalid_config.json" status: "failed" discovery: - - config_path: "secrets/config.json" + - config_path: "secrets/connected_account_config.json" basic_read: # Test for subscriptions only with respect to subscription status in ["active","canceled"] # If this test fails for some reason, please check the expected_subscriptions_statuses_records.json for valid subset of data. - - config_path: "secrets/config.json" + - config_path: "secrets/connected_account_config.json" configured_catalog_path: "integration_tests/subscription_catalog.json" validate_output_from_all_streams: yes expect_records: path: "integration_tests/expected_subscriptions_records.json" full_refresh: - - config_path: "secrets/config.json" + - config_path: "secrets/connected_account_config.json" configured_catalog_path: "integration_tests/configured_catalog.json" incremental: - - config_path: "secrets/config.json" + - config_path: "secrets/connected_account_config.json" configured_catalog_path: "integration_tests/configured_catalog.json" future_state_path: "integration_tests/abnormal_state.json" cursor_paths: diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index 81c4baa2f9ff..f4c1a7c472bc 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,8 +88,8 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -write_standard_creds source-stripe "$STRIPE_INTEGRATION_TEST_CREDS" -# write_standard_creds source-stripe "$STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS" "connected_account_config.json" +# write_standard_creds source-stripe "$STRIPE_INTEGRATION_TEST_CREDS" +write_standard_creds source-stripe "$STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS" "connected_account_config.json" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 4a21423121c70e355f8510c38c43c0c1ff0fab61 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 17:47:39 +0300 Subject: [PATCH 16/24] changed ci_credentials.sh back to use config.json --- .../source-stripe/acceptance-test-config.yml | 10 +++++----- tools/bin/ci_credentials.sh | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml index d660f382685f..50007da74e45 100644 --- a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml @@ -3,25 +3,25 @@ tests: spec: - spec_path: "source_stripe/spec.json" connection: - - config_path: "secrets/connected_account_config.json" + - config_path: "secrets/config.json" status: "succeed" - config_path: "integration_tests/invalid_config.json" status: "failed" discovery: - - config_path: "secrets/connected_account_config.json" + - config_path: "secrets/config.json" basic_read: # Test for subscriptions only with respect to subscription status in ["active","canceled"] # If this test fails for some reason, please check the expected_subscriptions_statuses_records.json for valid subset of data. - - config_path: "secrets/connected_account_config.json" + - config_path: "secrets/config.json" configured_catalog_path: "integration_tests/subscription_catalog.json" validate_output_from_all_streams: yes expect_records: path: "integration_tests/expected_subscriptions_records.json" full_refresh: - - config_path: "secrets/connected_account_config.json" + - config_path: "secrets/config.json" configured_catalog_path: "integration_tests/configured_catalog.json" incremental: - - config_path: "secrets/connected_account_config.json" + - config_path: "secrets/config.json" configured_catalog_path: "integration_tests/configured_catalog.json" future_state_path: "integration_tests/abnormal_state.json" cursor_paths: diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index f4c1a7c472bc..7872116d0272 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,8 +88,7 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -# write_standard_creds source-stripe "$STRIPE_INTEGRATION_TEST_CREDS" -write_standard_creds source-stripe "$STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS" "connected_account_config.json" +write_standard_creds source-stripe "$STRIPE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 458b6da4f76c921c6c1c799e3d94e6341e527d89 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 19:23:48 +0300 Subject: [PATCH 17/24] changed ci_credentials.sh to accept the new secret --- tools/bin/ci_credentials.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index 7872116d0272..d6a19e7fff32 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,7 +88,7 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -write_standard_creds source-stripe "$STRIPE_INTEGRATION_TEST_CREDS" "config.json" +write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 16646621ead4915dec0087622931177fb66549b6 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 19:27:40 +0300 Subject: [PATCH 18/24] changes ci_creds --- tools/bin/ci_credentials.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index d6a19e7fff32..8aff1089a5bd 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,7 +88,7 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" +write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" "config.json" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 9f49521ca219a551168f3fe93a323fffbaac4206 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 19:39:41 +0300 Subject: [PATCH 19/24] changed the secret inside test, publish command --- .github/workflows/publish-command.yml | 4 ++-- .github/workflows/test-command.yml | 4 ++-- tools/bin/ci_credentials.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-command.yml b/.github/workflows/publish-command.yml index 86cf91c15608..874ce2ab9293 100644 --- a/.github/workflows/publish-command.yml +++ b/.github/workflows/publish-command.yml @@ -126,8 +126,8 @@ jobs: SOURCE_SQUARE_CREDS: ${{ secrets.SOURCE_SQUARE_CREDS }} SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG: ${{ secrets.SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG }} SOURCE_RECURLY_INTEGRATION_TEST_CREDS: ${{ secrets.SOURCE_RECURLY_INTEGRATION_TEST_CREDS }} - STRIPE_INTEGRATION_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_TEST_CREDS }} - STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} + SOURCE_STRIPE_CREDS: ${{ secrets.SOURCE_STRIPE_CREDS }} + # STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} SURVEYMONKEY_TEST_CREDS: ${{ secrets.SURVEYMONKEY_TEST_CREDS }} TEMPO_INTEGRATION_TEST_CREDS: ${{ secrets.TEMPO_INTEGRATION_TEST_CREDS }} TWILIO_TEST_CREDS: ${{ secrets.TWILIO_TEST_CREDS }} diff --git a/.github/workflows/test-command.yml b/.github/workflows/test-command.yml index f4cc2e8f687a..ff548b5d4189 100644 --- a/.github/workflows/test-command.yml +++ b/.github/workflows/test-command.yml @@ -124,8 +124,8 @@ jobs: SOURCE_SQUARE_CREDS: ${{ secrets.SOURCE_SQUARE_CREDS }} SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG: ${{ secrets.SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG }} SOURCE_RECURLY_INTEGRATION_TEST_CREDS: ${{ secrets.SOURCE_RECURLY_INTEGRATION_TEST_CREDS }} - STRIPE_INTEGRATION_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_TEST_CREDS }} - STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} + SOURCE_STRIPE_CREDS: ${{ secrets.SOURCE_STRIPE_CREDS }} + # STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} SURVEYMONKEY_TEST_CREDS: ${{ secrets.SURVEYMONKEY_TEST_CREDS }} TEMPO_INTEGRATION_TEST_CREDS: ${{ secrets.TEMPO_INTEGRATION_TEST_CREDS }} TWILIO_TEST_CREDS: ${{ secrets.TWILIO_TEST_CREDS }} diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index 8aff1089a5bd..d6a19e7fff32 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,7 +88,7 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" "config.json" +write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 44971cc6cf8c4acf409b084a7a2cb5eaf4e6cc8f Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 19:50:21 +0300 Subject: [PATCH 20/24] ... --- tools/bin/ci_credentials.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index d6a19e7fff32..8aff1089a5bd 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,7 +88,7 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" +write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" "config.json" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From f149fc61e1215ca3e34be392ec9ad6684ff902c1 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Wed, 14 Jul 2021 20:12:51 +0300 Subject: [PATCH 21/24] ... --- tools/bin/ci_credentials.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index 8aff1089a5bd..d6a19e7fff32 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -88,7 +88,7 @@ write_standard_creds source-slack-singer "$SLACK_TEST_CREDS" write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" -write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" "config.json" +write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From 834d3453e7c3c7df560d38b735c44f5d0d6abfec Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Fri, 16 Jul 2021 16:28:39 +0300 Subject: [PATCH 22/24] changed schemas, changed acceptance-tests --- .github/workflows/publish-command.yml | 2 +- .github/workflows/test-command.yml | 2 +- .../connectors/source-stripe/README.md | 15 +- .../source-stripe/acceptance-test-config.yml | 32 +- .../integration_tests/configured_catalog.json | 3625 +--------------- .../non_disputes_catalog.json | 3822 ----------------- .../non_invoice_line_items_catalog.json | 219 +- .../schemas/balance_transactions.json | 6 +- .../source_stripe/schemas/charges.json | 20 +- .../customer_balance_transactions.json | 28 +- .../source_stripe/schemas/customers.json | 20 +- .../source_stripe/schemas/disputes.json | 3 +- .../source_stripe/schemas/events.json | 10 +- .../source_stripe/schemas/invoice_items.json | 6 +- .../schemas/invoice_line_items.json | 9 +- .../source_stripe/schemas/invoices.json | 45 +- .../source_stripe/schemas/payouts.json | 3 +- .../source_stripe/schemas/products.json | 3 +- .../schemas/subscription_items.json | 15 +- .../source_stripe/schemas/transfers.json | 21 +- tools/bin/ci_credentials.sh | 1 + 21 files changed, 290 insertions(+), 7617 deletions(-) delete mode 100644 airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json diff --git a/.github/workflows/publish-command.yml b/.github/workflows/publish-command.yml index 874ce2ab9293..c9aef680de61 100644 --- a/.github/workflows/publish-command.yml +++ b/.github/workflows/publish-command.yml @@ -127,7 +127,7 @@ jobs: SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG: ${{ secrets.SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG }} SOURCE_RECURLY_INTEGRATION_TEST_CREDS: ${{ secrets.SOURCE_RECURLY_INTEGRATION_TEST_CREDS }} SOURCE_STRIPE_CREDS: ${{ secrets.SOURCE_STRIPE_CREDS }} - # STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} + STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} SURVEYMONKEY_TEST_CREDS: ${{ secrets.SURVEYMONKEY_TEST_CREDS }} TEMPO_INTEGRATION_TEST_CREDS: ${{ secrets.TEMPO_INTEGRATION_TEST_CREDS }} TWILIO_TEST_CREDS: ${{ secrets.TWILIO_TEST_CREDS }} diff --git a/.github/workflows/test-command.yml b/.github/workflows/test-command.yml index ff548b5d4189..a9034b3328a5 100644 --- a/.github/workflows/test-command.yml +++ b/.github/workflows/test-command.yml @@ -125,7 +125,7 @@ jobs: SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG: ${{ secrets.SOURCE_MARKETO_SINGER_INTEGRATION_TEST_CONFIG }} SOURCE_RECURLY_INTEGRATION_TEST_CREDS: ${{ secrets.SOURCE_RECURLY_INTEGRATION_TEST_CREDS }} SOURCE_STRIPE_CREDS: ${{ secrets.SOURCE_STRIPE_CREDS }} - # STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} + STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS }} SURVEYMONKEY_TEST_CREDS: ${{ secrets.SURVEYMONKEY_TEST_CREDS }} TEMPO_INTEGRATION_TEST_CREDS: ${{ secrets.TEMPO_INTEGRATION_TEST_CREDS }} TWILIO_TEST_CREDS: ${{ secrets.TWILIO_TEST_CREDS }} diff --git a/airbyte-integrations/connectors/source-stripe/README.md b/airbyte-integrations/connectors/source-stripe/README.md index 112858d7e30b..b1ebbab185d5 100644 --- a/airbyte-integrations/connectors/source-stripe/README.md +++ b/airbyte-integrations/connectors/source-stripe/README.md @@ -68,11 +68,22 @@ To run your integration tests with acceptance tests, from the connector root, ru ``` python -m pytest integration_tests -p integration_tests.acceptance ``` -To run your integration tests with docker -### Locally running the connector docker image +### Using gradle to run tests +All commands should be run from airbyte project root. +To run unit tests: +``` +./gradlew :airbyte-integrations:connectors:source-stripe:unitTest +``` + +To run acceptance and custom integration tests: +``` +./gradlew :airbyte-integrations:connectors:source-stripe:integrationTest +``` #### Build +To run your integration tests with docker localy + First, make sure you build the latest Docker image: ``` docker build --no-cache . -t airbyte/source-stripe:dev diff --git a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml index 50007da74e45..8e463f4cd787 100644 --- a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml @@ -5,24 +5,42 @@ tests: connection: - config_path: "secrets/config.json" status: "succeed" + - config_path: "secrets/connected_account_config.json" + status: "succeed" - config_path: "integration_tests/invalid_config.json" status: "failed" discovery: - config_path: "secrets/config.json" + - config_path: "secrets/connected_account_config.json" basic_read: - # Test for subscriptions only with respect to subscription status in ["active","canceled"] - # If this test fails for some reason, please check the expected_subscriptions_statuses_records.json for valid subset of data. + # TEST 1 - Reading catalog without invoice_line_items + # Along with this test we expect subscriptions with status in ["active","canceled"] + # If this test fails for some reason, please check the expected_subscriptions_records.json for valid subset of data. - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/subscription_catalog.json" + configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json" validate_output_from_all_streams: yes + timeout_seconds: 3600 expect_records: path: "integration_tests/expected_subscriptions_records.json" - full_refresh: - - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/configured_catalog.json" + # TEST 2 - Reading data from account that has no records for stream Disputes + - config_path: "secrets/connected_account_config.json" + configured_catalog_path: "integration_tests/non_disputes_events_catalog.json" + validate_output_from_all_streams: yes + timeout_seconds: 3600 incremental: - config_path: "secrets/config.json" - configured_catalog_path: "integration_tests/configured_catalog.json" + configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json" future_state_path: "integration_tests/abnormal_state.json" cursor_paths: charges: ["created"] + - config_path: "secrets/connected_account_config.json" + configured_catalog_path: "integration_tests/non_disputes_events_catalog.json" + future_state_path: "integration_tests/abnormal_state.json" + cursor_paths: + charges: ["created"] + full_refresh: + - config_path: "secrets/config.json" + configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json" + timeout_seconds: 3600 + - config_path: "secrets/connected_account_config.json" + \ No newline at end of file diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json index 7e1d29ceea4e..870d8c865d2e 100644 --- a/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/configured_catalog.json @@ -2,1264 +2,38 @@ "streams": [ { "stream": { - "name": "bank_accounts", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "account_holder_name": { - "type": ["null", "string"] - }, - "account_holder_type": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "routing_number": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "full_refresh", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "balance_transactions", + "name": "events", "json_schema": { + "type": "object", "properties": { - "fee": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "source": { - "type": ["null", "string"] - }, - "fee_details": { - "type": ["null", "array"], - "items": { - "properties": { - "application": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - } - }, - "available_on": { - "type": ["null", "integer"] - }, - "status": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "net": { - "type": ["null", "integer"] - }, - "exchange_rate": { - "type": ["null", "number"] - }, - "type": { - "type": ["null", "string"] - }, - "sourced_transfers": { - "items": {}, - "type": ["null", "array"] - }, - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, "created": { "type": ["null", "integer"] }, - "amount": { - "type": ["null", "integer"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - }, - "type": ["null", "object"] - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "charges", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { + "data": { "type": ["null", "object"], "properties": {} }, - "fraud_details": { - "type": ["null", "object"], - "properties": { - "stripe_report": { - "type": ["null", "string"] - } - } - }, - "transfer_group": { - "type": ["null", "string"] - }, - "on_behalf_of": { - "type": ["null", "string"] - }, - "review": { - "type": ["null", "string"] - }, - "failure_message": { - "type": ["null", "string"] - }, - "receipt_email": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "source": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "three_d_secure": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "brand": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "usage": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "owner": { - "type": ["null", "object"], - "properties": { - "verified_address": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "verified_email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - }, - "verified_phone": { - "type": ["null", "string"] - } - } - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "client_secret": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "receiver": { - "type": ["null", "object"], - "properties": { - "refund_attributes_method": { - "type": ["null", "string"] - }, - "amount_returned": { - "type": ["null", "integer"] - }, - "amount_received": { - "type": ["null", "integer"] - }, - "refund_attributes_status": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "string"] - }, - "amount_charged": { - "type": ["null", "integer"] - } - } - }, - "flow": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "bank_name": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - }, - "refund_account_holder_type": { - "type": ["null", "string"] - }, - "refund_account_holder_name": { - "type": ["null", "string"] - }, - "refund_account_number": { - "type": ["null", "string"] - }, - "refund_routing_number": { - "type": ["null", "string"] - }, - "account_number": { - "type": ["null", "string"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "address_state": { - "type": ["null", "string"] - }, - "alipay": { - "type": ["null", "object"], - "properties": {} - }, - "bancontact": { - "type": ["null", "object"], - "properties": {} - }, - "eps": { - "type": ["null", "object"], - "properties": {} - }, - "ideal": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": {} - }, - "redirect": { - "type": ["null", "object"], - "properties": { - "failure_reason": { - "type": ["null", "string"] - }, - "return_url": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "url": { - "type": ["null", "string"] - } - } - } - } - }, - "destination": { - "type": ["null", "string"] - }, "id": { - "type": ["string"] - }, - "object": { - "type": ["null", "string"] - }, - "outcome": { - "type": ["null", "object"], - "properties": { - "type": { - "type": ["null", "string"] - }, - "seller_message": { - "type": ["null", "string"] - }, - "reason": { - "type": ["null", "string"] - }, - "risk_level": { - "type": ["null", "string"] - }, - "network_status": { - "type": ["null", "string"] - }, - "risk_score": { - "type": ["null", "integer"] - } - } - }, - "status": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "order": { "type": ["null", "string"] }, - "application": { + "api_version": { "type": ["null", "string"] }, - "refunded": { - "type": ["null", "boolean"] - }, - "receipt_number": { + "object": { "type": ["null", "string"] }, "livemode": { "type": ["null", "boolean"] }, - "captured": { - "type": ["null", "boolean"] - }, - "paid": { - "type": ["null", "boolean"] - }, - "shipping": { - "type": ["null", "object"], - "properties": {} - }, - "invoice": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "customer": { - "type": ["null", "string"] - }, - "payment_intent": { - "type": ["null", "string"] - }, - "source_transfer": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "refunds": { - "type": ["null", "array"], - "items": {} - }, - "application_fee": { - "type": ["null", "string"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "exp_month": { - "type": ["null", "integer"] - }, - "address_state": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "payment_method_details": { - "type": ["null", "object"], - "properties": { - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "account_number": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - } - } - }, - "ach_debit": { - "type": ["null", "object"], - "properties": { - "account_holder_type": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - } - } - }, - "alipay": { - "type": ["null", "object"] - }, - "bancontact": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "iban_last4": { - "type": ["null", "string"] - }, - "preferred_language": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "card": { - "type": ["null", "object"], - "properties": { - "brand": { - "type": ["null", "string"] - }, - "checks": { - "type": ["null", "object"], - "properties": { - "address_line1_check": { - "type": ["null", "string"] - }, - "address_postal_code_check": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - } - } - }, - "country": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "installments": { - "type": ["null", "object"], - "properties": { - "plan": { - "type": ["null", "object"], - "properties": { - "count": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - } - } - }, - "last4": { - "type": ["null", "string"] - }, - "network": { - "type": ["null", "string"] - }, - "three_d_secure": { - "type": ["null", "object"], - "properties": { - "authenticated": { - "type": ["null", "boolean"] - }, - "succeeded": { - "type": ["null", "boolean"] - }, - "version": { - "type": ["null", "string"] - } - } - }, - "wallet": { - "type": ["null", "object"], - "properties": { - "amex_express_checkout": { - "type": ["null", "object"], - "properties": {} - }, - "apple_pay": { - "type": ["null", "object"], - "properties": {} - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "google_pay": { - "type": ["null", "object"], - "properties": {} - }, - "masterpass": { - "type": ["null", "object"], - "properties": { - "billing_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - }, - "email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "shipping_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - } - } - }, - "samsung_pay": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "visa_checkout": { - "type": ["null", "object"], - "properties": { - "billing_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - }, - "email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "shipping_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - } - } - } - } - }, - "card_present": { - "type": ["null", "object"], - "properties": { - "brand": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "emv_auth_data": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "generated_card": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "network": { - "type": ["null", "string"] - }, - "read_method": { - "type": ["null", "string"] - }, - "receipt": { - "type": ["null", "object"], - "properties": { - "application_cryptogram": { - "type": ["null", "string"] - }, - "application_preferred_name": { - "type": ["null", "string"] - }, - "authorization_code": { - "type": ["null", "string"] - }, - "authorization_response_code": { - "type": ["null", "string"] - }, - "cardholder_verification_method": { - "type": ["null", "string"] - }, - "dedicated_file_name": { - "type": ["null", "string"] - }, - "terminal_verification_results": { - "type": ["null", "string"] - }, - "transaction_status_information": { - "type": ["null", "string"] - } - } - } - } - }, - "eps": { - "type": ["null", "object"], - "properties": { - "verified_name": { - "type": ["null", "string"] - } - } - }, - "giropay": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "ideal": { - "type": ["null", "object"], - "properties": { - "bank": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "iban_last4": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "klarna": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": { - "entity": { - "type": ["null", "string"] - }, - "reference": { - "type": ["null", "string"] - } - } - }, - "p24": { - "type": ["null", "object"], - "properties": { - "reference": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "sepa_debit": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "branch_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "mandate": { - "type": ["null", "string"] - } - } - }, - "sofort": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "iban_last4": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "stripe_account": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "wechat": { - "type": ["null", "object"], - "properties": {} - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "address_state": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - } - } - }, - "type": { - "type": ["null", "string"] - } - } - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "amount_refunded": { - "type": ["null", "integer"] - }, - "failure_code": { - "type": ["null", "string"] - }, - "dispute": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "coupons", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "times_redeemed": { + "pending_webhooks": { "type": ["null", "integer"] }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "valid": { - "type": ["null", "boolean"] - }, - "currency": { + "request": { "type": ["null", "string"] }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "name": { + "type": { "type": ["null", "string"] }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "integer"] - }, - "percent_off": { - "type": ["null", "number"] - }, "updated": { "type": ["null", "string"], "format": "date-time" @@ -1274,2389 +48,6 @@ "sync_mode": "incremental", "destination_sync_mode": "overwrite", "cursor_field": ["created"] - }, - { - "stream": { - "name": "customers", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "preferred_locales": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "invoice_settings": { - "type": ["null", "object"], - "properties": { - "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "default_payment_method": { - "type": ["null", "string"] - }, - "footer": { - "type": ["null", "string"] - } - } - }, - "name": { - "type": ["null", "string"] - }, - "tax_exempt": { - "type": ["null", "string"] - }, - "next_invoice_sequence": { - "type": ["null", "integer"] - }, - "balance": { - "type": ["null", "integer"] - }, - "phone": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - }, - "shipping": { - "type": ["null", "object"], - "properties": { - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - } - } - }, - "sources": { - "anyOf": [ - { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "three_d_secure": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "brand": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "usage": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "owner": { - "type": ["null", "object"], - "properties": { - "verified_address": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "verified_email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - }, - "verified_phone": { - "type": ["null", "string"] - } - } - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "client_secret": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "receiver": { - "type": ["null", "object"], - "properties": { - "refund_attributes_method": { - "type": ["null", "string"] - }, - "amount_returned": { - "type": ["null", "integer"] - }, - "amount_received": { - "type": ["null", "integer"] - }, - "refund_attributes_status": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "string"] - }, - "amount_charged": { - "type": ["null", "integer"] - } - } - }, - "flow": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "bank_name": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - }, - "refund_account_holder_type": { - "type": ["null", "string"] - }, - "refund_account_holder_name": { - "type": ["null", "string"] - }, - "refund_account_number": { - "type": ["null", "string"] - }, - "refund_routing_number": { - "type": ["null", "string"] - }, - "account_number": { - "type": ["null", "string"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "string"], - "format": "date-time" - }, - "address_state": { - "type": ["null", "string"] - }, - "alipay": { - "type": ["null", "object"], - "properties": {} - }, - "bancontact": { - "type": ["null", "object"], - "properties": {} - }, - "eps": { - "type": ["null", "object"], - "properties": {} - }, - "ideal": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": {} - }, - "redirect": { - "type": ["null", "object"], - "properties": { - "failure_reason": { - "type": ["null", "string"] - }, - "return_url": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "url": { - "type": ["null", "string"] - } - } - } - } - } - }, - { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "three_d_secure": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "brand": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "usage": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "owner": { - "type": ["null", "object"], - "properties": { - "verified_address": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "verified_email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - }, - "verified_phone": { - "type": ["null", "string"] - } - } - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "client_secret": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "receiver": { - "type": ["null", "object"], - "properties": { - "refund_attributes_method": { - "type": ["null", "string"] - }, - "amount_returned": { - "type": ["null", "integer"] - }, - "amount_received": { - "type": ["null", "integer"] - }, - "refund_attributes_status": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "string"] - }, - "amount_charged": { - "type": ["null", "integer"] - } - } - }, - "flow": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "bank_name": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - }, - "refund_account_holder_type": { - "type": ["null", "string"] - }, - "refund_account_holder_name": { - "type": ["null", "string"] - }, - "refund_account_number": { - "type": ["null", "string"] - }, - "refund_routing_number": { - "type": ["null", "string"] - }, - "account_number": { - "type": ["null", "string"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "string"], - "format": "date-time" - }, - "address_state": { - "type": ["null", "string"] - }, - "alipay": { - "type": ["null", "object"], - "properties": {} - }, - "bancontact": { - "type": ["null", "object"], - "properties": {} - }, - "eps": { - "type": ["null", "object"], - "properties": {} - }, - "ideal": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": {} - }, - "redirect": { - "type": ["null", "object"], - "properties": { - "failure_reason": { - "type": ["null", "string"] - }, - "return_url": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "url": { - "type": ["null", "string"] - } - } - } - } - } - ] - }, - "delinquent": { - "type": ["null", "boolean"] - }, - "description": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "default_source": { - "type": ["null", "string"] - }, - "cards": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "object": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address_state": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - } - }, - "email": { - "type": ["null", "string"] - }, - "default_card": { - "type": ["null", "string"] - }, - "subscriptions": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "discount": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "coupon": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "valid": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "times_redeemed": { - "type": ["null", "integer"] - }, - "id": { - "type": ["null", "string"] - }, - "duration": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "percent_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - } - } - }, - "account_balance": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "invoice_prefix": { - "type": ["null", "string"] - }, - "tax_info_verification": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "tax_info": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "customer_balance_transactions", - "json_schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "object": { - "type": "string" - }, - "amount": { - "type": "integer" - }, - "created": { - "type": "integer" - }, - "credit_note": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "customer": { - "type": "string" - }, - "description": { - "type": "string" - }, - "ending_balance": { - "type": "integer" - }, - "invoice": { - "type": "string" - }, - "livemode": { - "type": "boolean" - }, - "metadata": { - "type": "object", - "additionalProperties": true - }, - "type": { - "type": "string" - } - } - }, - "supported_sync_modes": ["full_refresh"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "disputes", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transactions": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["string"] - } - } - } - }, - "charge": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "evidence": { - "type": ["null", "string", "object"], - "properties": { - "refund_policy": { - "type": ["null", "string"] - }, - "shipping_address": { - "type": ["null", "string"] - }, - "duplicate_charge_explanation": { - "type": ["null", "string"] - }, - "shipping_tracking_number": { - "type": ["null", "string"] - }, - "customer_signature": { - "type": ["null", "string"] - }, - "uncategorized_text": { - "type": ["null", "string"] - }, - "cancellation_policy_disclosure": { - "type": ["null", "string"] - }, - "refund_policy_disclosure": { - "type": ["null", "string"] - }, - "receipt": { - "type": ["null", "string"] - }, - "customer_name": { - "type": ["null", "string"] - }, - "refund_refusal_explanation": { - "type": ["null", "string"] - }, - "cancellation_rebuttal": { - "type": ["null", "string"] - }, - "product_description": { - "type": ["null", "string"] - }, - "shipping_date": { - "type": ["null", "string"] - }, - "customer_email_address": { - "type": ["null", "string"] - }, - "duplicate_charge_id": { - "type": ["null", "string"] - }, - "shipping_documentation": { - "type": ["null", "string"] - }, - "access_activity_log": { - "type": ["null", "string"] - }, - "customer_purchase_ip": { - "type": ["null", "string"] - }, - "service_date": { - "type": ["null", "string"] - }, - "shipping_carrier": { - "type": ["null", "string"] - }, - "service_documentation": { - "type": ["null", "string"] - }, - "duplicate_charge_documentation": { - "type": ["null", "string"] - }, - "cancellation_policy": { - "type": ["null", "string"] - }, - "customer_communication": { - "type": ["null", "string"] - }, - "uncategorized_file": { - "type": ["null", "string"] - }, - "billing_address": { - "type": ["null", "string"] - } - } - }, - "evidence_details": { - "type": ["null", "object"], - "properties": { - "due_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "has_evidence": { - "type": ["null", "boolean"] - }, - "past_due": { - "type": ["null", "boolean"] - }, - "submission_count": { - "type": ["null", "integer"] - } - } - }, - "is_charge_refundable": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "reason": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "events", - "json_schema": { - "type": "object", - "properties": { - "created": { - "type": ["null", "integer"] - }, - "data": { - "type": ["null", "object"], - "properties": {} - }, - "id": { - "type": ["null", "string"] - }, - "api_version": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "pending_webhooks": { - "type": ["null", "integer"] - }, - "request": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "invoice_items", - "json_schema": { - "type": ["null", "object"], - "properties": { - "amount": { - "type": ["null", "integer"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "plan": { - "type": ["null", "object", "string"], - "properties": { - "nickname": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "string", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "object": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "product": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "invoice": { - "type": ["null", "string"] - }, - "period": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "quantity": { - "type": ["null", "integer"] - }, - "description": { - "type": ["null", "string"] - }, - "date": { - "type": ["null", "integer"] - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "discountable": { - "type": ["null", "boolean"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "proration": { - "type": ["null", "boolean"] - }, - "subscription_item": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["date"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["date"] - }, - { - "stream": { - "name": "invoices", - "json_schema": { - "type": ["null", "object"], - "properties": { - "date": { - "type": ["null", "integer"] - }, - "next_payment_attempt": { - "type": ["null", "string"], - "format": "date-time" - }, - "tax": { - "type": ["null", "integer"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "charge": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "receipt_number": { - "type": ["null", "string"] - }, - "attempt_count": { - "type": ["null", "integer"] - }, - "payment": { - "type": ["null", "string"] - }, - "amount_paid": { - "type": ["null", "integer"] - }, - "due_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "id": { - "type": ["null", "string"] - }, - "webhooks_delivered_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "hosted_invoice_url": { - "type": ["null", "string"] - }, - "period_end": { - "type": ["null", "string"], - "format": "date-time" - }, - "amount_remaining": { - "type": ["null", "integer"] - }, - "tax_percent": { - "type": ["null", "number"] - }, - "billing": { - "type": ["null", "string"] - }, - "auto_advance": { - "type": ["null", "boolean"] - }, - "paid": { - "type": ["null", "boolean"] - }, - "discount": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "coupon": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "valid": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "times_redeemed": { - "type": ["null", "integer"] - }, - "id": { - "type": ["null", "string"] - }, - "duration": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "percent_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "integer"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - } - } - }, - "number": { - "type": ["null", "string"] - }, - "billing_reason": { - "type": ["null", "string"] - }, - "ending_balance": { - "type": ["null", "integer"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "period_start": { - "type": ["null", "string"], - "format": "date-time" - }, - "attempted": { - "type": ["null", "boolean"] - }, - "closed": { - "type": ["null", "boolean"] - }, - "invoice_pdf": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "subtotal": { - "type": ["null", "integer"] - }, - "application_fee": { - "type": ["null", "integer"] - }, - "lines": { - "type": ["null", "array", "object"], - "items": { - "type": ["null", "string"] - }, - "properties": {} - }, - "forgiven": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "starting_balance": { - "type": ["null", "integer"] - }, - "amount_due": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "total": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "plans", - "json_schema": { - "type": ["null", "object", "string"], - "properties": { - "nickname": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "string", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "object": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "product": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "payouts", - "json_schema": { - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "failure_code": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "amount_reversed": { - "type": ["null", "integer"] - }, - "source_type": { - "type": ["null", "string"] - }, - "bank_account": { - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "routing_number": { - "type": ["null", "string"] - }, - "account_holder_type": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "account_holder_name": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "date": { - "type": ["null", "string"], - "format": "date-time" - }, - "method": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "failure_message": { - "type": ["null", "string"] - }, - "failure_balance_transaction": { - "type": ["null", "string"] - }, - "recipient": { - "type": ["null", "string"] - }, - "destination": { - "type": ["null", "string"] - }, - "automatic": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "transfer_group": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "arrival_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "description": { - "type": ["null", "string"] - }, - "source_transaction": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - }, - "type": ["null", "object"] - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "products", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "attributes": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "caption": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "deactivate_on": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "description": { - "type": ["null", "string"] - }, - "images": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "livemode": { - "type": ["null", "boolean"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "name": { - "type": ["null", "string"] - }, - "package_dimensions": { - "type": ["null", "object"], - "properties": { - "width": { - "type": ["null", "number"] - }, - "length": { - "type": ["null", "number"] - }, - "weight": { - "type": ["null", "number"] - }, - "height": { - "type": ["null", "number"] - } - } - }, - "shippable": { - "type": ["null", "boolean"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "unit_label": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - }, - "url": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "subscriptions", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "canceled_at": { - "type": ["null", "number"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "items": { - "type": ["null", "object"], - "properties": { - "object": { - "type": ["null", "string"] - }, - "data": { - "type": ["null", "array"] - }, - "has_more": { - "type": ["null", "boolean"] - }, - "total_count": { - "type": ["null", "number"] - }, - "url": { - "type": ["null", "string"] - } - } - }, - "id": { - "type": ["null", "string"] - }, - "trial_start": { - "type": ["null", "number"] - }, - "application_fee_percent": { - "type": ["null", "number"] - }, - "billing_cycle_anchor": { - "type": ["null", "number"] - }, - "cancel_at_period_end": { - "type": ["null", "boolean"] - }, - "tax_percent": { - "type": ["null", "number"] - }, - "discount": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "coupon": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "valid": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "amount_off": { - "type": ["null", "number"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration_in_months": { - "type": ["null", "number"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "max_redemptions": { - "type": ["null", "number"] - }, - "currency": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "times_redeemed": { - "type": ["null", "number"] - }, - "id": { - "type": ["null", "string"] - }, - "duration": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "percent_off": { - "type": ["null", "number"] - }, - "created": { - "type": ["null", "number"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "start_date": { - "type": ["null", "number"] - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - } - } - }, - "current_period_end": { - "type": ["null", "number"] - }, - "plan": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "product": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "integer", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "created": { - "type": ["null", "integer"] - }, - "nickname": { - "type": ["null", "string"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - } - } - }, - "billing": { - "type": ["null", "string"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "days_until_due": { - "type": ["null", "integer"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "ended_at": { - "type": ["null", "number"] - }, - "customer": { - "type": ["null", "string"] - }, - "current_period_start": { - "type": ["null", "number"] - }, - "trial_end": { - "type": ["null", "number"] - }, - "object": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "refunds", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "charge": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "payment_intent": { - "type": ["null", "string"] - }, - "reason": { - "type": ["null", "string"] - }, - "receipt_number": { - "type": ["null", "string"] - }, - "source_transfer_reversal": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "transfer_reversal": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "transfers", - "json_schema": { - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "reversals": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": {} - } - }, - "id": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "reversed": { - "type": ["null", "boolean"] - }, - "created": { - "type": ["null", "integer"] - }, - "amount_reversed": { - "type": ["null", "integer"] - }, - "source_type": { - "type": ["null", "string"] - }, - "source_transaction": { - "type": ["null", "string"] - }, - "date": { - "type": ["null", "string"], - "format": "date-time" - }, - "livemode": { - "type": ["null", "boolean"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "failure_balance_transaction": { - "type": ["null", "string"] - }, - "recipient": { - "type": ["null", "string"] - }, - "destination": { - "type": ["null", "string"] - }, - "automatic": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "transfer_group": { - "type": ["null", "string"] - }, - "arrival_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "description": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - }, - "type": ["null", "object"] - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] } ] } diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json deleted file mode 100644 index 03bef53d530b..000000000000 --- a/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_catalog.json +++ /dev/null @@ -1,3822 +0,0 @@ -{ - "streams": [ - { - "stream": { - "name": "bank_accounts", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "account_holder_name": { - "type": ["null", "string"] - }, - "account_holder_type": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "routing_number": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "full_refresh", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "balance_transactions", - "json_schema": { - "properties": { - "fee": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "source": { - "type": ["null", "string"] - }, - "fee_details": { - "type": ["null", "array"], - "items": { - "properties": { - "application": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - } - }, - "available_on": { - "type": ["null", "integer"] - }, - "status": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "net": { - "type": ["null", "integer"] - }, - "exchange_rate": { - "type": ["null", "number"] - }, - "type": { - "type": ["null", "string"] - }, - "sourced_transfers": { - "items": {}, - "type": ["null", "array"] - }, - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "integer"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - }, - "type": ["null", "object"] - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "charges", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "fraud_details": { - "type": ["null", "object"], - "properties": { - "stripe_report": { - "type": ["null", "string"] - } - } - }, - "transfer_group": { - "type": ["null", "string"] - }, - "on_behalf_of": { - "type": ["null", "string"] - }, - "review": { - "type": ["null", "string"] - }, - "failure_message": { - "type": ["null", "string"] - }, - "receipt_email": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "source": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "three_d_secure": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "brand": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "usage": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "owner": { - "type": ["null", "object"], - "properties": { - "verified_address": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "verified_email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - }, - "verified_phone": { - "type": ["null", "string"] - } - } - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "client_secret": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "receiver": { - "type": ["null", "object"], - "properties": { - "refund_attributes_method": { - "type": ["null", "string"] - }, - "amount_returned": { - "type": ["null", "integer"] - }, - "amount_received": { - "type": ["null", "integer"] - }, - "refund_attributes_status": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "string"] - }, - "amount_charged": { - "type": ["null", "integer"] - } - } - }, - "flow": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "bank_name": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - }, - "refund_account_holder_type": { - "type": ["null", "string"] - }, - "refund_account_holder_name": { - "type": ["null", "string"] - }, - "refund_account_number": { - "type": ["null", "string"] - }, - "refund_routing_number": { - "type": ["null", "string"] - }, - "account_number": { - "type": ["null", "string"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "address_state": { - "type": ["null", "string"] - }, - "alipay": { - "type": ["null", "object"], - "properties": {} - }, - "bancontact": { - "type": ["null", "object"], - "properties": {} - }, - "eps": { - "type": ["null", "object"], - "properties": {} - }, - "ideal": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": {} - }, - "redirect": { - "type": ["null", "object"], - "properties": { - "failure_reason": { - "type": ["null", "string"] - }, - "return_url": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "url": { - "type": ["null", "string"] - } - } - } - } - }, - "destination": { - "type": ["null", "string"] - }, - "id": { - "type": ["string"] - }, - "object": { - "type": ["null", "string"] - }, - "outcome": { - "type": ["null", "object"], - "properties": { - "type": { - "type": ["null", "string"] - }, - "seller_message": { - "type": ["null", "string"] - }, - "reason": { - "type": ["null", "string"] - }, - "risk_level": { - "type": ["null", "string"] - }, - "network_status": { - "type": ["null", "string"] - }, - "risk_score": { - "type": ["null", "integer"] - } - } - }, - "status": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "order": { - "type": ["null", "string"] - }, - "application": { - "type": ["null", "string"] - }, - "refunded": { - "type": ["null", "boolean"] - }, - "receipt_number": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "captured": { - "type": ["null", "boolean"] - }, - "paid": { - "type": ["null", "boolean"] - }, - "shipping": { - "type": ["null", "object"], - "properties": {} - }, - "invoice": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "customer": { - "type": ["null", "string"] - }, - "payment_intent": { - "type": ["null", "string"] - }, - "source_transfer": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "refunds": { - "type": ["null", "array"], - "items": {} - }, - "application_fee": { - "type": ["null", "string"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "exp_month": { - "type": ["null", "integer"] - }, - "address_state": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "payment_method_details": { - "type": ["null", "object"], - "properties": { - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "account_number": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - } - } - }, - "ach_debit": { - "type": ["null", "object"], - "properties": { - "account_holder_type": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - } - } - }, - "alipay": { - "type": ["null", "object"] - }, - "bancontact": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "iban_last4": { - "type": ["null", "string"] - }, - "preferred_language": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "card": { - "type": ["null", "object"], - "properties": { - "brand": { - "type": ["null", "string"] - }, - "checks": { - "type": ["null", "object"], - "properties": { - "address_line1_check": { - "type": ["null", "string"] - }, - "address_postal_code_check": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - } - } - }, - "country": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "installments": { - "type": ["null", "object"], - "properties": { - "plan": { - "type": ["null", "object"], - "properties": { - "count": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - } - } - }, - "last4": { - "type": ["null", "string"] - }, - "network": { - "type": ["null", "string"] - }, - "three_d_secure": { - "type": ["null", "object"], - "properties": { - "authenticated": { - "type": ["null", "boolean"] - }, - "succeeded": { - "type": ["null", "boolean"] - }, - "version": { - "type": ["null", "string"] - } - } - }, - "wallet": { - "type": ["null", "object"], - "properties": { - "amex_express_checkout": { - "type": ["null", "object"], - "properties": {} - }, - "apple_pay": { - "type": ["null", "object"], - "properties": {} - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "google_pay": { - "type": ["null", "object"], - "properties": {} - }, - "masterpass": { - "type": ["null", "object"], - "properties": { - "billing_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - }, - "email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "shipping_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - } - } - }, - "samsung_pay": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "visa_checkout": { - "type": ["null", "object"], - "properties": { - "billing_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - }, - "email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "shipping_address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - } - } - } - } - }, - "card_present": { - "type": ["null", "object"], - "properties": { - "brand": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "emv_auth_data": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "generated_card": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "network": { - "type": ["null", "string"] - }, - "read_method": { - "type": ["null", "string"] - }, - "receipt": { - "type": ["null", "object"], - "properties": { - "application_cryptogram": { - "type": ["null", "string"] - }, - "application_preferred_name": { - "type": ["null", "string"] - }, - "authorization_code": { - "type": ["null", "string"] - }, - "authorization_response_code": { - "type": ["null", "string"] - }, - "cardholder_verification_method": { - "type": ["null", "string"] - }, - "dedicated_file_name": { - "type": ["null", "string"] - }, - "terminal_verification_results": { - "type": ["null", "string"] - }, - "transaction_status_information": { - "type": ["null", "string"] - } - } - } - } - }, - "eps": { - "type": ["null", "object"], - "properties": { - "verified_name": { - "type": ["null", "string"] - } - } - }, - "giropay": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "ideal": { - "type": ["null", "object"], - "properties": { - "bank": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "iban_last4": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "klarna": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": { - "entity": { - "type": ["null", "string"] - }, - "reference": { - "type": ["null", "string"] - } - } - }, - "p24": { - "type": ["null", "object"], - "properties": { - "reference": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "sepa_debit": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "branch_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "mandate": { - "type": ["null", "string"] - } - } - }, - "sofort": { - "type": ["null", "object"], - "properties": { - "bank_code": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "bic": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "iban_last4": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - } - } - }, - "stripe_account": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "wechat": { - "type": ["null", "object"], - "properties": {} - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "address_state": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - } - } - }, - "type": { - "type": ["null", "string"] - } - } - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "amount_refunded": { - "type": ["null", "integer"] - }, - "failure_code": { - "type": ["null", "string"] - }, - "dispute": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "coupons", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "times_redeemed": { - "type": ["null", "integer"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "valid": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "name": { - "type": ["null", "string"] - }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "integer"] - }, - "percent_off": { - "type": ["null", "number"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "customers", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "preferred_locales": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "invoice_settings": { - "type": ["null", "object"], - "properties": { - "custom_fields": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "default_payment_method": { - "type": ["null", "string"] - }, - "footer": { - "type": ["null", "string"] - } - } - }, - "name": { - "type": ["null", "string"] - }, - "tax_exempt": { - "type": ["null", "string"] - }, - "next_invoice_sequence": { - "type": ["null", "integer"] - }, - "balance": { - "type": ["null", "integer"] - }, - "phone": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "city": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - }, - "line2": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - } - } - }, - "shipping": { - "type": ["null", "object"], - "properties": { - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - } - } - }, - "sources": { - "anyOf": [ - { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "three_d_secure": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "brand": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "usage": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "owner": { - "type": ["null", "object"], - "properties": { - "verified_address": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "verified_email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - }, - "verified_phone": { - "type": ["null", "string"] - } - } - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "client_secret": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "receiver": { - "type": ["null", "object"], - "properties": { - "refund_attributes_method": { - "type": ["null", "string"] - }, - "amount_returned": { - "type": ["null", "integer"] - }, - "amount_received": { - "type": ["null", "integer"] - }, - "refund_attributes_status": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "string"] - }, - "amount_charged": { - "type": ["null", "integer"] - } - } - }, - "flow": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "bank_name": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - }, - "refund_account_holder_type": { - "type": ["null", "string"] - }, - "refund_account_holder_name": { - "type": ["null", "string"] - }, - "refund_account_number": { - "type": ["null", "string"] - }, - "refund_routing_number": { - "type": ["null", "string"] - }, - "account_number": { - "type": ["null", "string"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "string"], - "format": "date-time" - }, - "address_state": { - "type": ["null", "string"] - }, - "alipay": { - "type": ["null", "object"], - "properties": {} - }, - "bancontact": { - "type": ["null", "object"], - "properties": {} - }, - "eps": { - "type": ["null", "object"], - "properties": {} - }, - "ideal": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": {} - }, - "redirect": { - "type": ["null", "object"], - "properties": { - "failure_reason": { - "type": ["null", "string"] - }, - "return_url": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "url": { - "type": ["null", "string"] - } - } - } - } - } - }, - { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "type": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "card": { - "type": ["null", "object"], - "properties": { - "fingerprint": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "three_d_secure": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "brand": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "usage": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "owner": { - "type": ["null", "object"], - "properties": { - "verified_address": { - "type": ["null", "string"] - }, - "email": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "object"], - "properties": { - "line2": { - "type": ["null", "string"] - }, - "state": { - "type": ["null", "string"] - }, - "city": { - "type": ["null", "string"] - }, - "postal_code": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "line1": { - "type": ["null", "string"] - } - } - }, - "verified_email": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "phone": { - "type": ["null", "string"] - }, - "verified_name": { - "type": ["null", "string"] - }, - "verified_phone": { - "type": ["null", "string"] - } - } - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "client_secret": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "receiver": { - "type": ["null", "object"], - "properties": { - "refund_attributes_method": { - "type": ["null", "string"] - }, - "amount_returned": { - "type": ["null", "integer"] - }, - "amount_received": { - "type": ["null", "integer"] - }, - "refund_attributes_status": { - "type": ["null", "string"] - }, - "address": { - "type": ["null", "string"] - }, - "amount_charged": { - "type": ["null", "integer"] - } - } - }, - "flow": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "ach_credit_transfer": { - "type": ["null", "object"], - "properties": { - "bank_name": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "routing_number": { - "type": ["null", "string"] - }, - "swift_code": { - "type": ["null", "string"] - }, - "refund_account_holder_type": { - "type": ["null", "string"] - }, - "refund_account_holder_name": { - "type": ["null", "string"] - }, - "refund_account_number": { - "type": ["null", "string"] - }, - "refund_routing_number": { - "type": ["null", "string"] - }, - "account_number": { - "type": ["null", "string"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "string"], - "format": "date-time" - }, - "address_state": { - "type": ["null", "string"] - }, - "alipay": { - "type": ["null", "object"], - "properties": {} - }, - "bancontact": { - "type": ["null", "object"], - "properties": {} - }, - "eps": { - "type": ["null", "object"], - "properties": {} - }, - "ideal": { - "type": ["null", "object"], - "properties": {} - }, - "multibanco": { - "type": ["null", "object"], - "properties": {} - }, - "redirect": { - "type": ["null", "object"], - "properties": { - "failure_reason": { - "type": ["null", "string"] - }, - "return_url": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "url": { - "type": ["null", "string"] - } - } - } - } - } - ] - }, - "delinquent": { - "type": ["null", "boolean"] - }, - "description": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "default_source": { - "type": ["null", "string"] - }, - "cards": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "object": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "exp_month": { - "type": ["null", "integer"] - }, - "dynamic_last4": { - "type": ["null", "string"] - }, - "exp_year": { - "type": ["null", "integer"] - }, - "last4": { - "type": ["null", "string"] - }, - "funding": { - "type": ["null", "string"] - }, - "brand": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "cvc_check": { - "type": ["null", "string"] - }, - "address_line2": { - "type": ["null", "string"] - }, - "address_line1": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "address_zip": { - "type": ["null", "string"] - }, - "address_city": { - "type": ["null", "string"] - }, - "address_country": { - "type": ["null", "string"] - }, - "address_line1_check": { - "type": ["null", "string"] - }, - "tokenization_method": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "address_state": { - "type": ["null", "string"] - }, - "address_zip_check": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - } - } - } - }, - "email": { - "type": ["null", "string"] - }, - "default_card": { - "type": ["null", "string"] - }, - "subscriptions": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "discount": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "coupon": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "valid": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "times_redeemed": { - "type": ["null", "integer"] - }, - "id": { - "type": ["null", "string"] - }, - "duration": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "percent_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - } - } - }, - "account_balance": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "invoice_prefix": { - "type": ["null", "string"] - }, - "tax_info_verification": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "tax_info": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "customer_balance_transactions", - "json_schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "object": { - "type": "string" - }, - "amount": { - "type": "integer" - }, - "created": { - "type": "integer" - }, - "credit_note": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "customer": { - "type": "string" - }, - "description": { - "type": "string" - }, - "ending_balance": { - "type": "integer" - }, - "invoice": { - "type": "string" - }, - "livemode": { - "type": "boolean" - }, - "metadata": { - "type": "object", - "additionalProperties": true - }, - "type": { - "type": "string" - } - } - }, - "supported_sync_modes": ["full_refresh"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "events", - "json_schema": { - "type": "object", - "properties": { - "created": { - "type": ["null", "integer"] - }, - "data": { - "type": ["null", "object"], - "properties": {} - }, - "id": { - "type": ["null", "string"] - }, - "api_version": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "pending_webhooks": { - "type": ["null", "integer"] - }, - "request": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "invoice_items", - "json_schema": { - "type": ["null", "object"], - "properties": { - "amount": { - "type": ["null", "integer"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "plan": { - "type": ["null", "object", "string"], - "properties": { - "nickname": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "string", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "object": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "product": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "invoice": { - "type": ["null", "string"] - }, - "period": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "quantity": { - "type": ["null", "integer"] - }, - "description": { - "type": ["null", "string"] - }, - "date": { - "type": ["null", "integer"] - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "discountable": { - "type": ["null", "boolean"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "proration": { - "type": ["null", "boolean"] - }, - "subscription_item": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["date"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["date"] - }, - { - "stream": { - "name": "invoice_line_items", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "invoice": { - "type": ["null", "string"] - }, - "subscription_item": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "description": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "discountable": { - "type": ["null", "boolean"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "amount": { - "type": ["null", "integer"] - }, - "type": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "proration": { - "type": ["null", "boolean"] - }, - "period": { - "type": ["null", "object"], - "properties": { - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "end": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "subscription": { - "type": ["null", "string"] - }, - "plan": { - "type": ["null", "object", "string"], - "properties": { - "nickname": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "string", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "object": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "product": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "invoice_item": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "full_refresh", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "invoices", - "json_schema": { - "type": ["null", "object"], - "properties": { - "date": { - "type": ["null", "integer"] - }, - "next_payment_attempt": { - "type": ["null", "string"], - "format": "date-time" - }, - "tax": { - "type": ["null", "integer"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "charge": { - "type": ["null", "string"] - }, - "description": { - "type": ["null", "string"] - }, - "receipt_number": { - "type": ["null", "string"] - }, - "attempt_count": { - "type": ["null", "integer"] - }, - "payment": { - "type": ["null", "string"] - }, - "amount_paid": { - "type": ["null", "integer"] - }, - "due_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "id": { - "type": ["null", "string"] - }, - "webhooks_delivered_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "hosted_invoice_url": { - "type": ["null", "string"] - }, - "period_end": { - "type": ["null", "string"], - "format": "date-time" - }, - "amount_remaining": { - "type": ["null", "integer"] - }, - "tax_percent": { - "type": ["null", "number"] - }, - "billing": { - "type": ["null", "string"] - }, - "auto_advance": { - "type": ["null", "boolean"] - }, - "paid": { - "type": ["null", "boolean"] - }, - "discount": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "coupon": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "valid": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "times_redeemed": { - "type": ["null", "integer"] - }, - "id": { - "type": ["null", "string"] - }, - "duration": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "percent_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "integer"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - } - } - }, - "number": { - "type": ["null", "string"] - }, - "billing_reason": { - "type": ["null", "string"] - }, - "ending_balance": { - "type": ["null", "integer"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "period_start": { - "type": ["null", "string"], - "format": "date-time" - }, - "attempted": { - "type": ["null", "boolean"] - }, - "closed": { - "type": ["null", "boolean"] - }, - "invoice_pdf": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "subtotal": { - "type": ["null", "integer"] - }, - "application_fee": { - "type": ["null", "integer"] - }, - "lines": { - "type": ["null", "array", "object"], - "items": { - "type": ["null", "string"] - }, - "properties": {} - }, - "forgiven": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "starting_balance": { - "type": ["null", "integer"] - }, - "amount_due": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "total": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "plans", - "json_schema": { - "type": ["null", "object", "string"], - "properties": { - "nickname": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "string", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "object": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "product": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "payouts", - "json_schema": { - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "failure_code": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "amount_reversed": { - "type": ["null", "integer"] - }, - "source_type": { - "type": ["null", "string"] - }, - "bank_account": { - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "routing_number": { - "type": ["null", "string"] - }, - "account_holder_type": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "bank_name": { - "type": ["null", "string"] - }, - "last4": { - "type": ["null", "string"] - }, - "fingerprint": { - "type": ["null", "string"] - }, - "account_holder_name": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "country": { - "type": ["null", "string"] - } - }, - "type": ["null", "object"] - }, - "date": { - "type": ["null", "string"], - "format": "date-time" - }, - "method": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "failure_message": { - "type": ["null", "string"] - }, - "failure_balance_transaction": { - "type": ["null", "string"] - }, - "recipient": { - "type": ["null", "string"] - }, - "destination": { - "type": ["null", "string"] - }, - "automatic": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "transfer_group": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "arrival_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "description": { - "type": ["null", "string"] - }, - "source_transaction": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - }, - "type": ["null", "object"] - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "products", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "attributes": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "caption": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "deactivate_on": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "description": { - "type": ["null", "string"] - }, - "images": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] - } - }, - "livemode": { - "type": ["null", "boolean"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "name": { - "type": ["null", "string"] - }, - "package_dimensions": { - "type": ["null", "object"], - "properties": { - "width": { - "type": ["null", "number"] - }, - "length": { - "type": ["null", "number"] - }, - "weight": { - "type": ["null", "number"] - }, - "height": { - "type": ["null", "number"] - } - } - }, - "shippable": { - "type": ["null", "boolean"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "type": { - "type": ["null", "string"] - }, - "unit_label": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - }, - "url": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "subscriptions", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "canceled_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "livemode": { - "type": ["null", "boolean"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "items": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_start": { - "type": ["null", "string"], - "format": "date-time" - }, - "application_fee_percent": { - "type": ["null", "number"] - }, - "billing_cycle_anchor": { - "type": ["null", "string"], - "format": "date-time" - }, - "cancel_at_period_end": { - "type": ["null", "boolean"] - }, - "tax_percent": { - "type": ["null", "number"] - }, - "discount": { - "type": ["null", "object"], - "properties": { - "end": { - "type": ["null", "string"], - "format": "date-time" - }, - "coupon": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "valid": { - "type": ["null", "boolean"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "amount_off": { - "type": ["null", "integer"] - }, - "redeem_by": { - "type": ["null", "string"], - "format": "date-time" - }, - "duration_in_months": { - "type": ["null", "integer"] - }, - "percent_off_precise": { - "type": ["null", "number"] - }, - "max_redemptions": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "times_redeemed": { - "type": ["null", "integer"] - }, - "id": { - "type": ["null", "string"] - }, - "duration": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "percent_off": { - "type": ["null", "integer"] - }, - "created": { - "type": ["null", "integer"] - } - } - }, - "customer": { - "type": ["null", "string"] - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "object": { - "type": ["null", "string"] - }, - "subscription": { - "type": ["null", "string"] - } - } - }, - "current_period_end": { - "type": ["null", "string"], - "format": "date-time" - }, - "plan": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "product": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "id": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "integer", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "created": { - "type": ["null", "integer"] - }, - "nickname": { - "type": ["null", "string"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - } - } - }, - "billing": { - "type": ["null", "string"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "days_until_due": { - "type": ["null", "integer"] - }, - "status": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "ended_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "customer": { - "type": ["null", "string"] - }, - "current_period_start": { - "type": ["null", "string"], - "format": "date-time" - }, - "trial_end": { - "type": ["null", "string"], - "format": "date-time" - }, - "object": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "subscription_items", - "json_schema": { - "type": ["null", "object"], - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "canceled_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "current_period_end": { - "type": ["null", "string"], - "format": "date-time" - }, - "plan": { - "type": ["null", "object", "string"], - "properties": { - "nickname": { - "type": ["null", "string"] - }, - "tiers": { - "type": ["null", "array"], - "items": { - "type": ["null", "string", "object"], - "properties": { - "flat_amount": { - "type": ["null", "integer"] - }, - "unit_amount": { - "type": ["null", "integer"] - }, - "up_to": { - "type": ["null", "integer"] - } - } - } - }, - "object": { - "type": ["null", "string"] - }, - "aggregate_usage": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "product": { - "type": ["null", "string"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "interval_count": { - "type": ["null", "integer"] - }, - "transform_usage": { - "type": ["null", "string"] - }, - "name": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "interval": { - "type": ["null", "string"] - }, - "id": { - "type": ["null", "string"] - }, - "trial_period_days": { - "type": ["null", "integer"] - }, - "usage_type": { - "type": ["null", "string"] - }, - "active": { - "type": ["null", "boolean"] - }, - "tiers_mode": { - "type": ["null", "string"] - }, - "billing_scheme": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "subscription": { - "type": ["null", "string"] - }, - "trial_start": { - "type": ["null", "string"], - "format": "date-time" - }, - "created": { - "type": ["null", "integer"] - }, - "cancel_at_period_end": { - "type": ["null", "boolean"] - }, - "quantity": { - "type": ["null", "integer"] - }, - "tax_percent": { - "type": ["null", "number"] - }, - "current_period_start": { - "type": ["null", "string"], - "format": "date-time" - }, - "start": { - "type": ["null", "string"], - "format": "date-time" - }, - "discount": { - "type": ["null", "object"], - "properties": {} - }, - "application_fee_percent": { - "type": ["null", "number"] - }, - "id": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "customer": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "livemode": { - "type": ["null", "boolean"] - }, - "ended_at": { - "type": ["null", "string"], - "format": "date-time" - }, - "trial_end": { - "type": ["null", "string"], - "format": "date-time" - } - } - }, - "supported_sync_modes": ["full_refresh"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "full_refresh", - "destination_sync_mode": "overwrite" - }, - { - "stream": { - "name": "refunds", - "json_schema": { - "type": ["null", "object"], - "properties": { - "id": { - "type": ["null", "string"] - }, - "object": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "charge": { - "type": ["null", "string"] - }, - "created": { - "type": ["null", "integer"] - }, - "currency": { - "type": ["null", "string"] - }, - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "payment_intent": { - "type": ["null", "string"] - }, - "reason": { - "type": ["null", "string"] - }, - "receipt_number": { - "type": ["null", "string"] - }, - "source_transfer_reversal": { - "type": ["null", "string"] - }, - "status": { - "type": ["null", "string"] - }, - "transfer_reversal": { - "type": ["null", "string"] - } - } - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - }, - { - "stream": { - "name": "transfers", - "json_schema": { - "properties": { - "metadata": { - "type": ["null", "object"], - "properties": {} - }, - "reversals": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": {} - } - }, - "id": { - "type": ["null", "string"] - }, - "statement_description": { - "type": ["null", "string"] - }, - "amount": { - "type": ["null", "integer"] - }, - "balance_transaction": { - "type": ["null", "string"] - }, - "reversed": { - "type": ["null", "boolean"] - }, - "created": { - "type": ["null", "integer"] - }, - "amount_reversed": { - "type": ["null", "integer"] - }, - "source_type": { - "type": ["null", "string"] - }, - "source_transaction": { - "type": ["null", "string"] - }, - "date": { - "type": ["null", "string"], - "format": "date-time" - }, - "livemode": { - "type": ["null", "boolean"] - }, - "statement_descriptor": { - "type": ["null", "string"] - }, - "failure_balance_transaction": { - "type": ["null", "string"] - }, - "recipient": { - "type": ["null", "string"] - }, - "destination": { - "type": ["null", "string"] - }, - "automatic": { - "type": ["null", "boolean"] - }, - "object": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "transfer_group": { - "type": ["null", "string"] - }, - "arrival_date": { - "type": ["null", "string"], - "format": "date-time" - }, - "description": { - "type": ["null", "string"] - }, - "updated": { - "type": ["null", "string"], - "format": "date-time" - } - }, - "type": ["null", "object"] - }, - "supported_sync_modes": ["full_refresh", "incremental"], - "source_defined_cursor": true, - "default_cursor_field": ["created"], - "source_defined_primary_key": [["id"]] - }, - "sync_mode": "incremental", - "destination_sync_mode": "overwrite", - "cursor_field": ["created"] - } - ] -} diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json index 7ac06977b7ed..a6660b34ca54 100644 --- a/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/non_invoice_line_items_catalog.json @@ -31,7 +31,7 @@ "type": ["null", "string"] }, "fingerprint": { - "type": ["null", "integer"] + "type": ["null", "string"] }, "last4": { "type": ["null", "string"] @@ -58,6 +58,7 @@ "stream": { "name": "balance_transactions", "json_schema": { + "type": ["null", "object"], "properties": { "fee": { "type": ["null", "integer"] @@ -120,17 +121,15 @@ "type": ["null", "string"] }, "created": { - "type": ["null", "integer"] + "type": ["null", "number"] }, "amount": { "type": ["null", "integer"] }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "string"] } - }, - "type": ["null", "object"] + } }, "supported_sync_modes": ["full_refresh", "incremental"], "source_defined_cursor": true, @@ -558,8 +557,24 @@ "type": ["null", "string"] }, "refunds": { - "type": ["null", "array"], - "items": {} + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } }, "application_fee": { "type": ["null", "string"] @@ -2081,9 +2096,23 @@ "type": ["null", "string"] }, "subscriptions": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } } }, "discount": { @@ -2208,47 +2237,47 @@ "name": "customer_balance_transactions", "json_schema": { "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", + "type": ["null", "object"], "properties": { "id": { - "type": "string" + "type": ["null", "string"] }, "object": { - "type": "string" + "type": ["null", "string"] }, "amount": { - "type": "integer" + "type": ["null", "number"] }, "created": { - "type": "integer" + "type": ["null", "number"] }, "credit_note": { - "type": "string" + "type": ["null", "string"] }, "currency": { - "type": "string" + "type": ["null", "string"] }, "customer": { - "type": "string" + "type": ["null", "string"] }, "description": { - "type": "string" + "type": ["null", "string"] }, "ending_balance": { - "type": "integer" + "type": ["null", "number"] }, "invoice": { - "type": "string" + "type": ["null", "string"] }, "livemode": { - "type": "boolean" + "type": ["null", "boolean"] }, "metadata": { - "type": "object", + "type": ["null", "object"], "additionalProperties": true }, "type": { - "type": "string" + "type": ["null", "string"] } } }, @@ -2384,8 +2413,7 @@ "type": ["null", "object"], "properties": { "due_by": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "has_evidence": { "type": ["null", "boolean"] @@ -2458,7 +2486,15 @@ "type": ["null", "integer"] }, "request": { - "type": ["null", "string"] + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "idempotency_key": { + "type": ["null", "string"] + } + } }, "type": { "type": ["null", "string"] @@ -2588,12 +2624,10 @@ "type": ["null", "object"], "properties": { "end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } }, @@ -2657,12 +2691,11 @@ "json_schema": { "type": ["null", "object"], "properties": { - "date": { + "created": { "type": ["null", "integer"] }, "next_payment_attempt": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "tax": { "type": ["null", "integer"] @@ -2690,15 +2723,13 @@ "type": ["null", "integer"] }, "due_date": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "id": { "type": ["null", "string"] }, "webhooks_delivered_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "statement_descriptor": { "type": ["null", "string"] @@ -2707,8 +2738,7 @@ "type": ["null", "string"] }, "period_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "amount_remaining": { "type": ["null", "integer"] @@ -2726,11 +2756,13 @@ "type": ["null", "boolean"] }, "discount": { - "type": ["null", "object"], + "type": ["null", "string"] + }, + "discounts": { + "type": ["null", "array", "object"], "properties": { "end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "coupon": { "type": ["null", "object"], @@ -2749,8 +2781,7 @@ "type": ["null", "integer"] }, "redeem_by": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "duration_in_months": { "type": ["null", "integer"] @@ -2791,8 +2822,7 @@ "type": ["null", "string"] }, "start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "object": { "type": ["null", "string"] @@ -2815,8 +2845,7 @@ "type": ["null", "boolean"] }, "period_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "attempted": { "type": ["null", "boolean"] @@ -2871,8 +2900,7 @@ "type": ["null", "string"] }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } }, @@ -3109,8 +3137,7 @@ "type": ["null", "string"] }, "arrival_date": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "description": { "type": ["null", "string"] @@ -3216,8 +3243,7 @@ "type": ["null", "string"] }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "url": { "type": ["null", "string"] @@ -3244,8 +3270,7 @@ "properties": {} }, "canceled_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "livemode": { "type": ["null", "boolean"] @@ -3255,24 +3280,36 @@ "format": "date-time" }, "items": { - "items": { - "type": ["null", "string"] - }, - "type": ["null", "array"] + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } }, "id": { "type": ["null", "string"] }, "trial_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "application_fee_percent": { "type": ["null", "number"] }, "billing_cycle_anchor": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "cancel_at_period_end": { "type": ["null", "boolean"] @@ -3301,20 +3338,20 @@ "type": ["null", "boolean"] }, "amount_off": { - "type": ["null", "integer"] + "type": ["null", "number"] }, "redeem_by": { "type": ["null", "string"], "format": "date-time" }, "duration_in_months": { - "type": ["null", "integer"] + "type": ["null", "number"] }, "percent_off_precise": { "type": ["null", "number"] }, "max_redemptions": { - "type": ["null", "integer"] + "type": ["null", "number"] }, "currency": { "type": ["null", "string"] @@ -3323,7 +3360,7 @@ "type": ["null", "string"] }, "times_redeemed": { - "type": ["null", "integer"] + "type": ["null", "number"] }, "id": { "type": ["null", "string"] @@ -3335,19 +3372,18 @@ "type": ["null", "string"] }, "percent_off": { - "type": ["null", "integer"] + "type": ["null", "number"] }, "created": { - "type": ["null", "integer"] + "type": ["null", "number"] } } }, "customer": { "type": ["null", "string"] }, - "start": { - "type": ["null", "string"], - "format": "date-time" + "start_date": { + "type": ["null", "number"] }, "object": { "type": ["null", "string"] @@ -3358,8 +3394,7 @@ } }, "current_period_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "plan": { "type": ["null", "object"], @@ -3463,19 +3498,16 @@ "type": ["null", "integer"] }, "ended_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "customer": { "type": ["null", "string"] }, "current_period_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "trial_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "object": { "type": ["null", "string"] @@ -3738,10 +3770,23 @@ "properties": {} }, "reversals": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": {} + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } } }, "id": { diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/balance_transactions.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/balance_transactions.json index 2cf21be98e64..f9729d97ff77 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/balance_transactions.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/balance_transactions.json @@ -1,4 +1,5 @@ { + "type": ["null", "object"], "properties": { "fee": { "type": ["null", "integer"] @@ -70,6 +71,5 @@ "type": ["null", "string"], "format": "date-time" } - }, - "type": ["null", "object"] -} + } +} \ No newline at end of file diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/charges.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/charges.json index c16c7892680e..5c913eb7d9f9 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/charges.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/charges.json @@ -412,8 +412,24 @@ "type": ["null", "string"] }, "refunds": { - "type": ["null", "array"], - "items": {} + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } }, "application_fee": { "type": ["null", "string"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customer_balance_transactions.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customer_balance_transactions.json index 871a44e79751..c986001891e2 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customer_balance_transactions.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customer_balance_transactions.json @@ -1,46 +1,46 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", + "type": ["null", "object"], "properties": { "id": { - "type": "string" + "type": ["null", "string"] }, "object": { - "type": "string" + "type": ["null", "string"] }, "amount": { - "type": "integer" + "type": ["null", "number"] }, "created": { - "type": "integer" + "type": ["null", "number"] }, "credit_note": { - "type": "string" + "type": ["null", "string"] }, "currency": { - "type": "string" + "type": ["null", "string"] }, "customer": { - "type": "string" + "type": ["null", "string"] }, "description": { - "type": "string" + "type": ["null", "string"] }, "ending_balance": { - "type": "integer" + "type": ["null", "number"] }, "invoice": { - "type": "string" + "type": ["null", "string"] }, "livemode": { - "type": "boolean" + "type": ["null", "boolean"] }, "metadata": { - "type": "object", + "type": ["null", "object"], "additionalProperties": true }, "type": { - "type": "string" + "type": ["null", "string"] } } } diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json index a2e6910003e9..562d4f217dff 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/customers.json @@ -801,9 +801,23 @@ "type": ["null", "string"] }, "subscriptions": { - "type": ["null", "array"], - "items": { - "type": ["null", "string"] + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } } }, "discount": { diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/disputes.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/disputes.json index 6674e32693d7..4978776c62fc 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/disputes.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/disputes.json @@ -120,8 +120,7 @@ "type": ["null", "object"], "properties": { "due_by": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "has_evidence": { "type": ["null", "boolean"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/events.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/events.json index f5991666d0fd..d5292fe1aeb8 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/events.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/events.json @@ -24,7 +24,15 @@ "type": ["null", "integer"] }, "request": { - "type": ["null", "string"] + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "idempotency_key": { + "type": ["null", "string"] + } + } }, "type": { "type": ["null", "string"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_items.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_items.json index ba8a504b3bfb..305888ab82c9 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_items.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_items.json @@ -105,12 +105,10 @@ "type": ["null", "object"], "properties": { "end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } }, diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_line_items.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_line_items.json index 9f5b7dd8a084..798c26e402da 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_line_items.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoice_line_items.json @@ -42,12 +42,10 @@ "type": ["null", "object"], "properties": { "start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } }, @@ -139,8 +137,7 @@ "properties": {} }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } }, diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json index f90d7f0913b7..f09c002daa36 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/invoices.json @@ -1,15 +1,11 @@ { "type": ["null", "object"], "properties": { - "date": { - "type": ["null", "integer"] - }, "created": { "type": ["null", "integer"] }, "next_payment_attempt": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "tax": { "type": ["null", "integer"] @@ -37,15 +33,13 @@ "type": ["null", "integer"] }, "due_date": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "id": { "type": ["null", "string"] }, "webhooks_delivered_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "statement_descriptor": { "type": ["null", "string"] @@ -54,8 +48,7 @@ "type": ["null", "string"] }, "period_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "amount_remaining": { "type": ["null", "integer"] @@ -72,12 +65,14 @@ "paid": { "type": ["null", "boolean"] }, + "discount": { + "type": ["null", "string"] + }, "discounts": { - "type": ["null", "object"], + "type": ["null", "array", "object"], "properties": { "end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "coupon": { "type": ["null", "object"], @@ -93,20 +88,19 @@ "type": ["null", "boolean"] }, "amount_off": { - "type": ["null", "number"] + "type": ["null", "integer"] }, "redeem_by": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "duration_in_months": { - "type": ["null", "number"] + "type": ["null", "integer"] }, "percent_off_precise": { "type": ["null", "number"] }, "max_redemptions": { - "type": ["null", "number"] + "type": ["null", "integer"] }, "currency": { "type": ["null", "string"] @@ -115,7 +109,7 @@ "type": ["null", "string"] }, "times_redeemed": { - "type": ["null", "number"] + "type": ["null", "integer"] }, "id": { "type": ["null", "string"] @@ -127,7 +121,7 @@ "type": ["null", "string"] }, "percent_off": { - "type": ["null", "number"] + "type": ["null", "integer"] }, "created": { "type": ["null", "integer"] @@ -138,8 +132,7 @@ "type": ["null", "string"] }, "start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "object": { "type": ["null", "string"] @@ -162,8 +155,7 @@ "type": ["null", "boolean"] }, "period_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "attempted": { "type": ["null", "boolean"] @@ -218,8 +210,7 @@ "type": ["null", "string"] }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } } diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/payouts.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/payouts.json index 405e7bcf2619..f3778fa6f7c2 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/payouts.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/payouts.json @@ -117,8 +117,7 @@ "type": ["null", "string"] }, "arrival_date": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "description": { "type": ["null", "string"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/products.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/products.json index 01df776346a5..fe3b4a3714dd 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/products.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/products.json @@ -77,8 +77,7 @@ "type": ["null", "string"] }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "url": { "type": ["null", "string"] diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscription_items.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscription_items.json index 8bc26bc6656d..93f9e47c2e68 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscription_items.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/subscription_items.json @@ -98,8 +98,7 @@ "properties": {} }, "updated": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } }, @@ -107,8 +106,7 @@ "type": ["null", "string"] }, "trial_start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "created": { "type": ["null", "integer"] @@ -127,8 +125,7 @@ "format": "date-time" }, "start": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "discount": { "type": ["null", "object"], @@ -153,12 +150,10 @@ "type": ["null", "boolean"] }, "ended_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] }, "trial_end": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "number"] } } } diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/transfers.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/transfers.json index 1da025ee4636..3f81fb8f5a16 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/transfers.json +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/transfers.json @@ -5,10 +5,23 @@ "properties": {} }, "reversals": { - "type": ["null", "array"], - "items": { - "type": ["null", "object"], - "properties": {} + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } } }, "id": { diff --git a/tools/bin/ci_credentials.sh b/tools/bin/ci_credentials.sh index d6a19e7fff32..7490fb6ac5f8 100755 --- a/tools/bin/ci_credentials.sh +++ b/tools/bin/ci_credentials.sh @@ -89,6 +89,7 @@ write_standard_creds source-smartsheets "$SMARTSHEETS_TEST_CREDS" write_standard_creds source-snowflake "$SNOWFLAKE_INTEGRATION_TEST_CREDS" "config.json" write_standard_creds source-square "$SOURCE_SQUARE_CREDS" write_standard_creds source-stripe "$SOURCE_STRIPE_CREDS" +write_standard_creds source-stripe "$STRIPE_INTEGRATION_CONNECTED_ACCOUNT_TEST_CREDS" "connected_account_config.json" write_standard_creds source-surveymonkey "$SURVEYMONKEY_TEST_CREDS" write_standard_creds source-tempo "$TEMPO_INTEGRATION_TEST_CREDS" write_standard_creds source-twilio-singer "$TWILIO_TEST_CREDS" From bf7152d279cfb5310bb9f4751c33bb7961a1cb6a Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Fri, 16 Jul 2021 17:09:17 +0300 Subject: [PATCH 23/24] changed no_disputes_catalog.json --- .../non_disputes_events_catalog.json | 3809 +++++++++++++++++ 1 file changed, 3809 insertions(+) create mode 100644 airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_events_catalog.json diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_events_catalog.json b/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_events_catalog.json new file mode 100644 index 000000000000..620e57430d75 --- /dev/null +++ b/airbyte-integrations/connectors/source-stripe/integration_tests/non_disputes_events_catalog.json @@ -0,0 +1,3809 @@ +{ + "streams": [ + { + "stream": { + "name": "bank_accounts", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "account_holder_name": { + "type": ["null", "string"] + }, + "account_holder_type": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "routing_number": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "balance_transactions", + "json_schema": { + "type": ["null", "object"], + "properties": { + "fee": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "source": { + "type": ["null", "string"] + }, + "fee_details": { + "type": ["null", "array"], + "items": { + "properties": { + "application": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + } + }, + "type": ["null", "object"] + } + }, + "available_on": { + "type": ["null", "integer"] + }, + "status": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "net": { + "type": ["null", "integer"] + }, + "exchange_rate": { + "type": ["null", "number"] + }, + "type": { + "type": ["null", "string"] + }, + "sourced_transfers": { + "items": {}, + "type": ["null", "array"] + }, + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "amount": { + "type": ["null", "integer"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "charges", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "fraud_details": { + "type": ["null", "object"], + "properties": { + "stripe_report": { + "type": ["null", "string"] + } + } + }, + "transfer_group": { + "type": ["null", "string"] + }, + "on_behalf_of": { + "type": ["null", "string"] + }, + "review": { + "type": ["null", "string"] + }, + "failure_message": { + "type": ["null", "string"] + }, + "receipt_email": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "source": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } + }, + "destination": { + "type": ["null", "string"] + }, + "id": { + "type": ["string"] + }, + "object": { + "type": ["null", "string"] + }, + "outcome": { + "type": ["null", "object"], + "properties": { + "type": { + "type": ["null", "string"] + }, + "seller_message": { + "type": ["null", "string"] + }, + "reason": { + "type": ["null", "string"] + }, + "risk_level": { + "type": ["null", "string"] + }, + "network_status": { + "type": ["null", "string"] + }, + "risk_score": { + "type": ["null", "integer"] + } + } + }, + "status": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "order": { + "type": ["null", "string"] + }, + "application": { + "type": ["null", "string"] + }, + "refunded": { + "type": ["null", "boolean"] + }, + "receipt_number": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "captured": { + "type": ["null", "boolean"] + }, + "paid": { + "type": ["null", "boolean"] + }, + "shipping": { + "type": ["null", "object"], + "properties": {} + }, + "invoice": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "customer": { + "type": ["null", "string"] + }, + "payment_intent": { + "type": ["null", "string"] + }, + "source_transfer": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "refunds": { + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "application_fee": { + "type": ["null", "string"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "exp_month": { + "type": ["null", "integer"] + }, + "address_state": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "payment_method_details": { + "type": ["null", "object"], + "properties": { + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "account_number": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + } + } + }, + "ach_debit": { + "type": ["null", "object"], + "properties": { + "account_holder_type": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + } + } + }, + "alipay": { + "type": ["null", "object"] + }, + "bancontact": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "iban_last4": { + "type": ["null", "string"] + }, + "preferred_language": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "card": { + "type": ["null", "object"], + "properties": { + "brand": { + "type": ["null", "string"] + }, + "checks": { + "type": ["null", "object"], + "properties": { + "address_line1_check": { + "type": ["null", "string"] + }, + "address_postal_code_check": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + } + } + }, + "country": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "installments": { + "type": ["null", "object"], + "properties": { + "plan": { + "type": ["null", "object"], + "properties": { + "count": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + } + } + }, + "last4": { + "type": ["null", "string"] + }, + "network": { + "type": ["null", "string"] + }, + "three_d_secure": { + "type": ["null", "object"], + "properties": { + "authenticated": { + "type": ["null", "boolean"] + }, + "succeeded": { + "type": ["null", "boolean"] + }, + "version": { + "type": ["null", "string"] + } + } + }, + "wallet": { + "type": ["null", "object"], + "properties": { + "amex_express_checkout": { + "type": ["null", "object"], + "properties": {} + }, + "apple_pay": { + "type": ["null", "object"], + "properties": {} + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "google_pay": { + "type": ["null", "object"], + "properties": {} + }, + "masterpass": { + "type": ["null", "object"], + "properties": { + "billing_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + }, + "email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "shipping_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + } + } + }, + "samsung_pay": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "visa_checkout": { + "type": ["null", "object"], + "properties": { + "billing_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + }, + "email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "shipping_address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + } + } + } + } + }, + "card_present": { + "type": ["null", "object"], + "properties": { + "brand": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "emv_auth_data": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "generated_card": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "network": { + "type": ["null", "string"] + }, + "read_method": { + "type": ["null", "string"] + }, + "receipt": { + "type": ["null", "object"], + "properties": { + "application_cryptogram": { + "type": ["null", "string"] + }, + "application_preferred_name": { + "type": ["null", "string"] + }, + "authorization_code": { + "type": ["null", "string"] + }, + "authorization_response_code": { + "type": ["null", "string"] + }, + "cardholder_verification_method": { + "type": ["null", "string"] + }, + "dedicated_file_name": { + "type": ["null", "string"] + }, + "terminal_verification_results": { + "type": ["null", "string"] + }, + "transaction_status_information": { + "type": ["null", "string"] + } + } + } + } + }, + "eps": { + "type": ["null", "object"], + "properties": { + "verified_name": { + "type": ["null", "string"] + } + } + }, + "giropay": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "ideal": { + "type": ["null", "object"], + "properties": { + "bank": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "iban_last4": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "klarna": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": { + "entity": { + "type": ["null", "string"] + }, + "reference": { + "type": ["null", "string"] + } + } + }, + "p24": { + "type": ["null", "object"], + "properties": { + "reference": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "sepa_debit": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "branch_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "mandate": { + "type": ["null", "string"] + } + } + }, + "sofort": { + "type": ["null", "object"], + "properties": { + "bank_code": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "bic": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "iban_last4": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + } + } + }, + "stripe_account": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "wechat": { + "type": ["null", "object"], + "properties": {} + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "address_state": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + } + } + }, + "type": { + "type": ["null", "string"] + } + } + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "amount_refunded": { + "type": ["null", "integer"] + }, + "failure_code": { + "type": ["null", "string"] + }, + "dispute": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "coupons", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "valid": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "integer"] + }, + "percent_off": { + "type": ["null", "number"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "customers", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "preferred_locales": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "invoice_settings": { + "type": ["null", "object"], + "properties": { + "custom_fields": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "default_payment_method": { + "type": ["null", "string"] + }, + "footer": { + "type": ["null", "string"] + } + } + }, + "name": { + "type": ["null", "string"] + }, + "tax_exempt": { + "type": ["null", "string"] + }, + "next_invoice_sequence": { + "type": ["null", "integer"] + }, + "balance": { + "type": ["null", "integer"] + }, + "phone": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "city": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + }, + "line2": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + } + } + }, + "shipping": { + "type": ["null", "object"], + "properties": { + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + } + } + }, + "sources": { + "anyOf": [ + { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } + } + }, + { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "type": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "card": { + "type": ["null", "object"], + "properties": { + "fingerprint": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "three_d_secure": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "brand": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "usage": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "owner": { + "type": ["null", "object"], + "properties": { + "verified_address": { + "type": ["null", "string"] + }, + "email": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "object"], + "properties": { + "line2": { + "type": ["null", "string"] + }, + "state": { + "type": ["null", "string"] + }, + "city": { + "type": ["null", "string"] + }, + "postal_code": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "line1": { + "type": ["null", "string"] + } + } + }, + "verified_email": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "phone": { + "type": ["null", "string"] + }, + "verified_name": { + "type": ["null", "string"] + }, + "verified_phone": { + "type": ["null", "string"] + } + } + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "client_secret": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "receiver": { + "type": ["null", "object"], + "properties": { + "refund_attributes_method": { + "type": ["null", "string"] + }, + "amount_returned": { + "type": ["null", "integer"] + }, + "amount_received": { + "type": ["null", "integer"] + }, + "refund_attributes_status": { + "type": ["null", "string"] + }, + "address": { + "type": ["null", "string"] + }, + "amount_charged": { + "type": ["null", "integer"] + } + } + }, + "flow": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "ach_credit_transfer": { + "type": ["null", "object"], + "properties": { + "bank_name": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "routing_number": { + "type": ["null", "string"] + }, + "swift_code": { + "type": ["null", "string"] + }, + "refund_account_holder_type": { + "type": ["null", "string"] + }, + "refund_account_holder_name": { + "type": ["null", "string"] + }, + "refund_account_number": { + "type": ["null", "string"] + }, + "refund_routing_number": { + "type": ["null", "string"] + }, + "account_number": { + "type": ["null", "string"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + }, + "address_state": { + "type": ["null", "string"] + }, + "alipay": { + "type": ["null", "object"], + "properties": {} + }, + "bancontact": { + "type": ["null", "object"], + "properties": {} + }, + "eps": { + "type": ["null", "object"], + "properties": {} + }, + "ideal": { + "type": ["null", "object"], + "properties": {} + }, + "multibanco": { + "type": ["null", "object"], + "properties": {} + }, + "redirect": { + "type": ["null", "object"], + "properties": { + "failure_reason": { + "type": ["null", "string"] + }, + "return_url": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + } + } + } + } + } + ] + }, + "delinquent": { + "type": ["null", "boolean"] + }, + "description": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "default_source": { + "type": ["null", "string"] + }, + "cards": { + "type": ["null", "array"], + "items": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "object": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "exp_month": { + "type": ["null", "integer"] + }, + "dynamic_last4": { + "type": ["null", "string"] + }, + "exp_year": { + "type": ["null", "integer"] + }, + "last4": { + "type": ["null", "string"] + }, + "funding": { + "type": ["null", "string"] + }, + "brand": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "cvc_check": { + "type": ["null", "string"] + }, + "address_line2": { + "type": ["null", "string"] + }, + "address_line1": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "address_zip": { + "type": ["null", "string"] + }, + "address_city": { + "type": ["null", "string"] + }, + "address_country": { + "type": ["null", "string"] + }, + "address_line1_check": { + "type": ["null", "string"] + }, + "tokenization_method": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "address_state": { + "type": ["null", "string"] + }, + "address_zip_check": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + } + } + } + }, + "email": { + "type": ["null", "string"] + }, + "default_card": { + "type": ["null", "string"] + }, + "subscriptions": { + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "discount": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "account_balance": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "invoice_prefix": { + "type": ["null", "string"] + }, + "tax_info_verification": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "tax_info": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "customer_balance_transactions", + "json_schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "number"] + }, + "created": { + "type": ["null", "number"] + }, + "credit_note": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "ending_balance": { + "type": ["null", "number"] + }, + "invoice": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "metadata": { + "type": ["null", "object"], + "additionalProperties": true + }, + "type": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "invoice_items", + "json_schema": { + "type": ["null", "object"], + "properties": { + "amount": { + "type": ["null", "integer"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "plan": { + "type": ["null", "object", "string"], + "properties": { + "nickname": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "string", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "object": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "product": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "invoice": { + "type": ["null", "string"] + }, + "period": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "number"] + }, + "start": { + "type": ["null", "number"] + } + } + }, + "quantity": { + "type": ["null", "integer"] + }, + "description": { + "type": ["null", "string"] + }, + "date": { + "type": ["null", "integer"] + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "discountable": { + "type": ["null", "boolean"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "proration": { + "type": ["null", "boolean"] + }, + "subscription_item": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["date"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["date"] + }, + { + "stream": { + "name": "invoice_line_items", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "invoice": { + "type": ["null", "string"] + }, + "subscription_item": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "description": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "discountable": { + "type": ["null", "boolean"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "amount": { + "type": ["null", "integer"] + }, + "type": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "proration": { + "type": ["null", "boolean"] + }, + "period": { + "type": ["null", "object"], + "properties": { + "start": { + "type": ["null", "number"] + }, + "end": { + "type": ["null", "number"] + } + } + }, + "subscription": { + "type": ["null", "string"] + }, + "plan": { + "type": ["null", "object", "string"], + "properties": { + "nickname": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "string", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "object": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "product": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "updated": { + "type": ["null", "number"] + } + } + }, + "invoice_item": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "invoices", + "json_schema": { + "type": ["null", "object"], + "properties": { + "created": { + "type": ["null", "integer"] + }, + "next_payment_attempt": { + "type": ["null", "number"] + }, + "tax": { + "type": ["null", "integer"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "charge": { + "type": ["null", "string"] + }, + "description": { + "type": ["null", "string"] + }, + "receipt_number": { + "type": ["null", "string"] + }, + "attempt_count": { + "type": ["null", "integer"] + }, + "payment": { + "type": ["null", "string"] + }, + "amount_paid": { + "type": ["null", "integer"] + }, + "due_date": { + "type": ["null", "number"] + }, + "id": { + "type": ["null", "string"] + }, + "webhooks_delivered_at": { + "type": ["null", "number"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "hosted_invoice_url": { + "type": ["null", "string"] + }, + "period_end": { + "type": ["null", "number"] + }, + "amount_remaining": { + "type": ["null", "integer"] + }, + "tax_percent": { + "type": ["null", "number"] + }, + "billing": { + "type": ["null", "string"] + }, + "auto_advance": { + "type": ["null", "boolean"] + }, + "paid": { + "type": ["null", "boolean"] + }, + "discount": { + "type": ["null", "string"] + }, + "discounts": { + "type": ["null", "array", "object"], + "properties": { + "end": { + "type": ["null", "number"] + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "integer"] + }, + "redeem_by": { + "type": ["null", "number"] + }, + "duration_in_months": { + "type": ["null", "integer"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "integer"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "integer"] + }, + "created": { + "type": ["null", "integer"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "number": { + "type": ["null", "string"] + }, + "billing_reason": { + "type": ["null", "string"] + }, + "ending_balance": { + "type": ["null", "integer"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "period_start": { + "type": ["null", "number"] + }, + "attempted": { + "type": ["null", "boolean"] + }, + "closed": { + "type": ["null", "boolean"] + }, + "invoice_pdf": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "subtotal": { + "type": ["null", "integer"] + }, + "application_fee": { + "type": ["null", "integer"] + }, + "lines": { + "type": ["null", "array", "object"], + "items": { + "type": ["null", "string"] + }, + "properties": {} + }, + "forgiven": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "starting_balance": { + "type": ["null", "integer"] + }, + "amount_due": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "total": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "number"] + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "plans", + "json_schema": { + "type": ["null", "object", "string"], + "properties": { + "nickname": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "string", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "object": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "product": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "payouts", + "json_schema": { + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "failure_code": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "amount_reversed": { + "type": ["null", "integer"] + }, + "source_type": { + "type": ["null", "string"] + }, + "bank_account": { + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "routing_number": { + "type": ["null", "string"] + }, + "account_holder_type": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "bank_name": { + "type": ["null", "string"] + }, + "last4": { + "type": ["null", "string"] + }, + "fingerprint": { + "type": ["null", "string"] + }, + "account_holder_name": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "country": { + "type": ["null", "string"] + } + }, + "type": ["null", "object"] + }, + "date": { + "type": ["null", "string"], + "format": "date-time" + }, + "method": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "failure_message": { + "type": ["null", "string"] + }, + "failure_balance_transaction": { + "type": ["null", "string"] + }, + "recipient": { + "type": ["null", "string"] + }, + "destination": { + "type": ["null", "string"] + }, + "automatic": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "transfer_group": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "arrival_date": { + "type": ["null", "number"] + }, + "description": { + "type": ["null", "string"] + }, + "source_transaction": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + }, + "type": ["null", "object"] + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "products", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "attributes": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "caption": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "deactivate_on": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "description": { + "type": ["null", "string"] + }, + "images": { + "type": ["null", "array"], + "items": { + "type": ["null", "string"] + } + }, + "livemode": { + "type": ["null", "boolean"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "name": { + "type": ["null", "string"] + }, + "package_dimensions": { + "type": ["null", "object"], + "properties": { + "width": { + "type": ["null", "number"] + }, + "length": { + "type": ["null", "number"] + }, + "weight": { + "type": ["null", "number"] + }, + "height": { + "type": ["null", "number"] + } + } + }, + "shippable": { + "type": ["null", "boolean"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "unit_label": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "subscriptions", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "canceled_at": { + "type": ["null", "number"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "items": { + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "id": { + "type": ["null", "string"] + }, + "trial_start": { + "type": ["null", "number"] + }, + "application_fee_percent": { + "type": ["null", "number"] + }, + "billing_cycle_anchor": { + "type": ["null", "number"] + }, + "cancel_at_period_end": { + "type": ["null", "boolean"] + }, + "tax_percent": { + "type": ["null", "number"] + }, + "discount": { + "type": ["null", "object"], + "properties": { + "end": { + "type": ["null", "string"], + "format": "date-time" + }, + "coupon": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "valid": { + "type": ["null", "boolean"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "amount_off": { + "type": ["null", "number"] + }, + "redeem_by": { + "type": ["null", "string"], + "format": "date-time" + }, + "duration_in_months": { + "type": ["null", "number"] + }, + "percent_off_precise": { + "type": ["null", "number"] + }, + "max_redemptions": { + "type": ["null", "number"] + }, + "currency": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "times_redeemed": { + "type": ["null", "number"] + }, + "id": { + "type": ["null", "string"] + }, + "duration": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "percent_off": { + "type": ["null", "number"] + }, + "created": { + "type": ["null", "number"] + } + } + }, + "customer": { + "type": ["null", "string"] + }, + "start_date": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "subscription": { + "type": ["null", "string"] + } + } + }, + "current_period_end": { + "type": ["null", "number"] + }, + "plan": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "product": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "id": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "integer", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "created": { + "type": ["null", "integer"] + }, + "nickname": { + "type": ["null", "string"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + } + } + }, + "billing": { + "type": ["null", "string"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "days_until_due": { + "type": ["null", "integer"] + }, + "status": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "ended_at": { + "type": ["null", "number"] + }, + "customer": { + "type": ["null", "string"] + }, + "current_period_start": { + "type": ["null", "number"] + }, + "trial_end": { + "type": ["null", "number"] + }, + "object": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "subscription_items", + "json_schema": { + "type": ["null", "object"], + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "canceled_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "current_period_end": { + "type": ["null", "string"], + "format": "date-time" + }, + "plan": { + "type": ["null", "object", "string"], + "properties": { + "nickname": { + "type": ["null", "string"] + }, + "tiers": { + "type": ["null", "array"], + "items": { + "type": ["null", "string", "object"], + "properties": { + "flat_amount": { + "type": ["null", "integer"] + }, + "unit_amount": { + "type": ["null", "integer"] + }, + "up_to": { + "type": ["null", "integer"] + } + } + } + }, + "object": { + "type": ["null", "string"] + }, + "aggregate_usage": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "product": { + "type": ["null", "string"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "interval_count": { + "type": ["null", "integer"] + }, + "transform_usage": { + "type": ["null", "string"] + }, + "name": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "interval": { + "type": ["null", "string"] + }, + "id": { + "type": ["null", "string"] + }, + "trial_period_days": { + "type": ["null", "integer"] + }, + "usage_type": { + "type": ["null", "string"] + }, + "active": { + "type": ["null", "boolean"] + }, + "tiers_mode": { + "type": ["null", "string"] + }, + "billing_scheme": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "subscription": { + "type": ["null", "string"] + }, + "trial_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "created": { + "type": ["null", "integer"] + }, + "cancel_at_period_end": { + "type": ["null", "boolean"] + }, + "quantity": { + "type": ["null", "integer"] + }, + "tax_percent": { + "type": ["null", "number"] + }, + "current_period_start": { + "type": ["null", "string"], + "format": "date-time" + }, + "start": { + "type": ["null", "string"], + "format": "date-time" + }, + "discount": { + "type": ["null", "object"], + "properties": {} + }, + "application_fee_percent": { + "type": ["null", "number"] + }, + "id": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "customer": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "livemode": { + "type": ["null", "boolean"] + }, + "ended_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "trial_end": { + "type": ["null", "string"], + "format": "date-time" + } + } + }, + "supported_sync_modes": ["full_refresh"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + }, + { + "stream": { + "name": "refunds", + "json_schema": { + "type": ["null", "object"], + "properties": { + "id": { + "type": ["null", "string"] + }, + "object": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "charge": { + "type": ["null", "string"] + }, + "created": { + "type": ["null", "integer"] + }, + "currency": { + "type": ["null", "string"] + }, + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "payment_intent": { + "type": ["null", "string"] + }, + "reason": { + "type": ["null", "string"] + }, + "receipt_number": { + "type": ["null", "string"] + }, + "source_transfer_reversal": { + "type": ["null", "string"] + }, + "status": { + "type": ["null", "string"] + }, + "transfer_reversal": { + "type": ["null", "string"] + } + } + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + }, + { + "stream": { + "name": "transfers", + "json_schema": { + "properties": { + "metadata": { + "type": ["null", "object"], + "properties": {} + }, + "reversals": { + "type": ["null", "object"], + "properties": { + "object": { + "type": ["null", "string"] + }, + "data": { + "type": ["null", "array"] + }, + "has_more": { + "type": ["null", "boolean"] + }, + "total_count": { + "type": ["null", "number"] + }, + "url": { + "type": ["null", "string"] + } + } + }, + "id": { + "type": ["null", "string"] + }, + "statement_description": { + "type": ["null", "string"] + }, + "amount": { + "type": ["null", "integer"] + }, + "balance_transaction": { + "type": ["null", "string"] + }, + "reversed": { + "type": ["null", "boolean"] + }, + "created": { + "type": ["null", "integer"] + }, + "amount_reversed": { + "type": ["null", "integer"] + }, + "source_type": { + "type": ["null", "string"] + }, + "source_transaction": { + "type": ["null", "string"] + }, + "date": { + "type": ["null", "string"], + "format": "date-time" + }, + "livemode": { + "type": ["null", "boolean"] + }, + "statement_descriptor": { + "type": ["null", "string"] + }, + "failure_balance_transaction": { + "type": ["null", "string"] + }, + "recipient": { + "type": ["null", "string"] + }, + "destination": { + "type": ["null", "string"] + }, + "automatic": { + "type": ["null", "boolean"] + }, + "object": { + "type": ["null", "string"] + }, + "currency": { + "type": ["null", "string"] + }, + "transfer_group": { + "type": ["null", "string"] + }, + "arrival_date": { + "type": ["null", "string"], + "format": "date-time" + }, + "description": { + "type": ["null", "string"] + }, + "updated": { + "type": ["null", "string"], + "format": "date-time" + } + }, + "type": ["null", "object"] + }, + "supported_sync_modes": ["full_refresh", "incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["created"], + "source_defined_primary_key": [["id"]] + }, + "sync_mode": "incremental", + "destination_sync_mode": "overwrite", + "cursor_field": ["created"] + } + ] +} From c3d269bb22d9f83d91f2894bdaf9d981845f9f56 Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Fri, 16 Jul 2021 19:40:54 +0300 Subject: [PATCH 24/24] changed formating --- .../connectors/source-stripe/acceptance-test-config.yml | 2 +- ...riptions_records.json => expected_subscriptions_records.txt} | 0 .../building-new-connector/source-acceptance-tests.md | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename airbyte-integrations/connectors/source-stripe/integration_tests/{expected_subscriptions_records.json => expected_subscriptions_records.txt} (100%) diff --git a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml index 8e463f4cd787..51db21edaaa5 100644 --- a/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-stripe/acceptance-test-config.yml @@ -21,7 +21,7 @@ tests: validate_output_from_all_streams: yes timeout_seconds: 3600 expect_records: - path: "integration_tests/expected_subscriptions_records.json" + path: "integration_tests/expected_subscriptions_records.txt" # TEST 2 - Reading data from account that has no records for stream Disputes - config_path: "secrets/connected_account_config.json" configured_catalog_path: "integration_tests/non_disputes_events_catalog.json" diff --git a/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_records.json b/airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_records.txt similarity index 100% rename from airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_records.json rename to airbyte-integrations/connectors/source-stripe/integration_tests/expected_subscriptions_records.txt diff --git a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md index d6384208112a..629d949d169d 100644 --- a/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md +++ b/docs/contributing-to-airbyte/building-new-connector/source-acceptance-tests.md @@ -67,7 +67,7 @@ Configuring all streams in the input catalog to full refresh mode verifies that |||x| |||| -### Example of `expected_records.json`: +### Example of `expected_records.txt`: In general, the expected_records.json should contain the subset of output of the records of particular stream you need to test. The required fields are: `stream, data, emitted_at`