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

Update various stripe objects with missing fields, remove deprecated fields, and add support for some missing objects #602

Merged
merged 24 commits into from
May 27, 2020

Conversation

pwcsquared
Copy link
Contributor

I did some work to cut down the number of warnings due to missing fields on structs when running mix test, related to this issue: #517

Some new fields required adding support for some smaller objects, namely file_link, mandate, credit_note_line_item, customer_balance_transaction.

Also added an explicit struct for usage_record_summary, which is the object returned in the response for Stripe.Subscriptions.UsageItem.list/3.

The bulk of the changes are updates to existing stripe object structs to bring them back in line with the current API.

Finally, two objects were removed completely: Issuing Disputes, and Issuing Card Details, since they are no longer available in the API. (Let me know if these should be kept for legacy support).

@coveralls
Copy link

coveralls commented May 14, 2020

Coverage Status

Coverage increased (+1.5%) to 89.609% when pulling ff960d9 on pwcsquared:fix/update-object-fields into 0d419bf on code-corps:master.

@pwcsquared
Copy link
Contributor Author

pwcsquared commented May 15, 2020

^ Looks like Travis CI failed due to an older version of stripe-mock (0.70.0), tests pass locally if running a recent version (0.90.0), I'll add a commit to update.

Add support for Price core resource
@johannesE
Copy link

Is there anything I can do to help here? I am in need of this and #604 and don't want to create my own fork with these branches just so that you decide to merge them the day after.

Copy link
Collaborator

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

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

Perfect! Thanks a lot for this PR!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants