-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉 Source Stripe: add checkout_sessions stream, checkout_sessions_line_item stream and promotion_codes stream #7345
🎉 Source Stripe: add checkout_sessions stream, checkout_sessions_line_item stream and promotion_codes stream #7345
Conversation
data = response_json.get("data", []) | ||
if data: | ||
for e in data: | ||
checkout_session_id = re.search(r'/sessions/(cs_[^/].+)/line_items', response.url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the checkout_session_id is saved into the line_items response, since it is not included line_items response.
…on schema and requests_params
thanks @vladimir-remar I asked the team to review your contribution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just a few comments
Also, could you please add these 3 new streams to integration tests?
- CheckoutSessions and CheckoutSessionsLineItems to
integration_tests/full_refresh_configured_catalog.json
; - PromotionCodes to
non_invoice_line_items_catalog
file. Also please add data for PromotionCodes stream tointegration_tests/abnormal_state.json
file.
After doing this, could you please post here results of integration tests?
Also could you please add all 3 streams to integration_tests/configured_catalog.json
file?
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/promotion_codes.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/promotion_codes.json
Outdated
Show resolved
Hide resolved
...ntegrations/connectors/source-stripe/source_stripe/schemas/checkout_sessions_line_items.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/checkout_sessions.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/promotion_codes.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/checkout_sessions.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/checkout_sessions.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/schemas/checkout_sessions.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-stripe/source_stripe/streams.py
Outdated
Show resolved
Hide resolved
Hi! @Zirochkaa, thanks for the comments. I did the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vladimir-remar nice work, just 2 comments and we are good to go.
airbyte-integrations/connectors/source-stripe/source_stripe/streams.py
Outdated
Show resolved
Hide resolved
...ntegrations/connectors/source-stripe/source_stripe/schemas/checkout_sessions_line_items.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I also run SAT locally and everything is working - 👍
…om:vladimir-remar/airbyte into marcos/test-pr-7345
…_item stream and promotion_codes stream (airbytehq#7345) * update: add checkout_sessions and checkout_sessions_line_item streams * update: add discount object to checkout_session_line_items, update json schema and requests_params * fix: checkout_session_line_items json schema * update: add new stream promotion_codes * fix: json schemas * fix: checkout sessions line items json schema * update: add new streams to integration tests * format streams file * fix type in checkout_sessions_line_items json schema * update parse_response in CheckoutSessionsLineItems * bump version + docs * generate seed and format Co-authored-by: Marcos Marx <[email protected]>
What
Add new streams for checkout sessions and checkout session line items.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here