diff --git a/airbyte-integrations/connectors/source-stripe/Dockerfile b/airbyte-integrations/connectors/source-stripe/Dockerfile index a5547ea47e8a..e968523d3f8e 100644 --- a/airbyte-integrations/connectors/source-stripe/Dockerfile +++ b/airbyte-integrations/connectors/source-stripe/Dockerfile @@ -14,5 +14,5 @@ ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=3.5.0 +LABEL io.airbyte.version=3.6.0 LABEL io.airbyte.name=airbyte/source-stripe diff --git a/airbyte-integrations/connectors/source-stripe/metadata.yaml b/airbyte-integrations/connectors/source-stripe/metadata.yaml index 534a3278b815..f757596574c2 100644 --- a/airbyte-integrations/connectors/source-stripe/metadata.yaml +++ b/airbyte-integrations/connectors/source-stripe/metadata.yaml @@ -5,7 +5,7 @@ data: connectorSubtype: api connectorType: source definitionId: e094cb9a-26de-4645-8761-65c0c425d1de - dockerImageTag: 3.5.0 + dockerImageTag: 3.6.0 dockerRepository: airbyte/source-stripe githubIssueLabel: source-stripe icon: stripe.svg diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/credit_notes.json b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/credit_notes.json new file mode 100644 index 000000000000..6fa82fa55c4d --- /dev/null +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/schemas/credit_notes.json @@ -0,0 +1,123 @@ +{ + "type": [ + "null", + "object" + ], + "properties": { + "metadata": { + "type": [ + "null", + "object" + ], + "properties": {} + }, + "id": { + "type": [ + "null", + "string" + ] + }, + "total": { + "type": [ + "null", + "number" + ] + }, + "amount": { + "type": [ + "null", + "number" + ] + }, + "voided_at": { + "type": [ + "null", + "integer" + ] + }, + "created": { + "type": [ + "null", + "integer" + ] + }, + "number": { + "type": [ + "null", + "string" + ] + }, + "subtotal": { + "type": [ + "null", + "number" + ] + }, + "livemode": { + "type": [ + "null", + "boolean" + ] + }, + "reason": { + "type": [ + "null", + "string" + ] + }, + "pdf": { + "type": [ + "null", + "string" + ] + }, + "invoice": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "refund": { + "type": [ + "null", + "string" + ] + }, + "memo": { + "type": [ + "null", + "string" + ] + }, + "customer_balance_transaction": { + "type": [ + "null", + "string" + ] + }, + "discount_amount": { + "type": [ + "null", + "number" + ] + } + } +} diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/source.py b/airbyte-integrations/connectors/source-stripe/source_stripe/source.py index 30706be028f7..0a84e9c97038 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/source.py +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/source.py @@ -18,6 +18,7 @@ Charges, CheckoutSessions, CheckoutSessionsLineItems, + CreditNotes, Coupons, CustomerBalanceTransactions, Customers, @@ -69,6 +70,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: Charges(**incremental_args), CheckoutSessions(**args), CheckoutSessionsLineItems(**args), + CreditNotes(**incremental_args), Coupons(**incremental_args), CustomerBalanceTransactions(**args), Customers(**incremental_args), diff --git a/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py b/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py index ce8a0c3e10c9..55582c5fc285 100644 --- a/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py +++ b/airbyte-integrations/connectors/source-stripe/source_stripe/streams.py @@ -215,6 +215,12 @@ def stream_slices( continue yield customer +class CreditNotes(IncrementalStripeStream): + cursor_field = "created" + + def path(self, **kwargs): + return "credit_notes" + class Coupons(IncrementalStripeStream): """ diff --git a/connectors.md b/connectors.md index b96a8722668b..0bedf2d2f229 100644 --- a/connectors.md +++ b/connectors.md @@ -1,7 +1,7 @@ -# Airbyte Connectors - -A list of all airbyte connectors can now be found [here](https://connectors.airbyte.com/files/generated_reports/connector_registry_report.html) (or in the [docs](https://docs.airbyte.com/integrations/)). - -This report is generated from the **Airbyte Catalog Registries** -* [OSS Registry JSON](https://connectors.airbyte.com/files/registries/v0/oss_registry.json) -* [Cloud Registry JSON](https://connectors.airbyte.com/files/registries/v0/cloud_registry.json) +# Airbyte Connectors + +A list of all airbyte connectors can now be found [here](https://connectors.airbyte.com/files/generated_reports/connector_registry_report.html) (or in the [docs](https://docs.airbyte.com/integrations/)). + +This report is generated from the **Airbyte Catalog Registries** +* [OSS Registry JSON](https://connectors.airbyte.com/files/registries/v0/oss_registry.json) +* [Cloud Registry JSON](https://connectors.airbyte.com/files/registries/v0/cloud_registry.json) diff --git a/docs/integrations/sources/stripe.md b/docs/integrations/sources/stripe.md index 8a1b6ce19567..60781ca48761 100644 --- a/docs/integrations/sources/stripe.md +++ b/docs/integrations/sources/stripe.md @@ -86,6 +86,7 @@ The Stripe connector should not run into Stripe API limitations under normal usa | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | +| 3.6.0 | 2023-05-24 | [24666](https://github.com/airbytehq/airbyte/pull/24666) | Add new stream (credit_notes) | | 3.5.0 | 2023-05-20 | [22859](https://github.com/airbytehq/airbyte/pull/22859) | Add stream `Early Fraud Warnings` | | 3.4.3 | 2023-05-10 | [25965](https://github.com/airbytehq/airbyte/pull/25965) | Fix Airbyte date-time data-types | | 3.4.2 | 2023-05-04 | [25795](https://github.com/airbytehq/airbyte/pull/25795) | Added `CDK TypeTransformer` to guarantee declared JSON Schema data-types | @@ -136,4 +137,4 @@ The Stripe connector should not run into Stripe API limitations under normal usa | 0.1.11 | 2021-05-30 | [3744](https://github.com/airbytehq/airbyte/pull/3744) | Fix types in schema | | 0.1.10 | 2021-05-28 | [3728](https://github.com/airbytehq/airbyte/pull/3728) | Update data types to be number instead of int | | 0.1.9 | 2021-05-13 | [3367](https://github.com/airbytehq/airbyte/pull/3367) | Add acceptance tests for connected accounts | -| 0.1.8 | 2021-05-11 | [3566](https://github.com/airbytehq/airbyte/pull/3368) | Bump CDK connectors | \ No newline at end of file +| 0.1.8 | 2021-05-11 | [3566](https://github.com/airbytehq/airbyte/pull/3368) | Bump CDK connectors |