Skip to content

Commit

Permalink
✨ Source Stripe: updated: connector health: invoice_line_items stream…
Browse files Browse the repository at this point in the history
… schema, unit tests, expected records (#31046)

Co-authored-by: darynaishchenko <darynaishchenko@users.noreply.github.com>
  • Loading branch information
darynaishchenko and darynaishchenko committed Oct 9, 2023
1 parent e6f4d36 commit c75e5ec
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-stripe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]


LABEL io.airbyte.version=4.3.1
LABEL io.airbyte.version=4.4.0
LABEL io.airbyte.name=airbyte/source-stripe
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ acceptance_tests:
bypass_reason: "URL changes upon each request for privacy/security"
- name: hosted_invoice_url
bypass_reason: "URL changes upon each request for privacy/security"
- name: lines/data/*/margins
bypass_reason: "API randomly returns this field"
charges:
- name: receipt_url
bypass_reason: "URL changes upon each request for privacy/security"
Expand All @@ -80,6 +82,9 @@ acceptance_tests:
usage_records:
- name: id
bypass_reason: "id field is randomly generated"
invoice_line_items:
- name: margins
bypass_reason: "API randomly returns this field"
incremental:
tests:
- config_path: "secrets/config.json"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: e094cb9a-26de-4645-8761-65c0c425d1de
dockerImageTag: 4.3.1
dockerImageTag: 4.4.0
dockerRepository: airbyte/source-stripe
githubIssueLabel: source-stripe
icon: stripe.svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
"livemode": {
"type": ["null", "boolean"]
},
"margins": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"proration": {
"type": ["null", "boolean"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#

import os

import pytest
from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator
from source_stripe.streams import IncrementalStripeStream, StripeLazySubStream

os.environ["REQUEST_CACHE_PATH"] = "REQUEST_CACHE_PATH"


@pytest.fixture(name="config")
def config_fixture():
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/stripe.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ The Stripe connector should not run into Stripe API limitations under normal usa

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------|
| 4.4.0 | 2023-10-04 | [31046](https://github.com/airbytehq/airbyte/pull/31046) | Added margins field to invoice_line_items stream. |
| 4.3.1 | 2023-09-27 | [30800](https://github.com/airbytehq/airbyte/pull/30800) | Handle permission issues a non breaking |
| 4.3.0 | 2023-09-26 | [30752](https://github.com/airbytehq/airbyte/pull/30752) | Do not sync upcoming invoices, extend stream schemas |
| 4.2.0 | 2023-09-21 | [30660](https://github.com/airbytehq/airbyte/pull/30660) | Fix updated state for the incremental syncs |
Expand Down

0 comments on commit c75e5ec

Please sign in to comment.