Skip to content
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

api version upgrade #181

Merged
merged 14 commits into from Aug 29, 2023
Merged

api version upgrade #181

merged 14 commits into from Aug 29, 2023

Conversation

rdeshmukh15
Copy link
Contributor

@rdeshmukh15 rdeshmukh15 commented Aug 1, 2023

Description of change

  • API Version upgrade to 2022-11-15 (TDL-23422)
  • SDK version upgrade to 5.5.0
  • Schema changes and related code changes
  • Fix integration test cases

Manual QA steps

Risks

Rollback steps

  • revert this branch

Comment on lines 14 to 23
item = stripe.InvoiceItem.create(
amount=random.randint(1, 10000),
currency="usd",
customer=customer_id,
description="Comfortable cotton t-shirt {}".format(now_value),
metadata=metadata_value,
discountable=True,
subscription_item=None,
tax_rates=[], # TODO enter the child attributes
stripe_version = '2020-08-27'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent these like you have below

Comment on lines 34 to 37
# custom_fields={
# 'name': 'CustomName',
# 'value': 'CustomValue',
# },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's delete these lines

Comment on lines 54 to 60
# Fields which are deprecated and no longer will come in the response of api
deprecated_fields = {
'payment_intents': {
'charges'
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this just be included in FIELDS_TO_NOT_CHECK?

Copy link
Contributor

@luandy64 luandy64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests could use some clean up / formatting, but the changes look fine to me

@rdeshmukh15 rdeshmukh15 merged commit 15cd892 into master Aug 29, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants