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

Add missing invoice attributes #425

Merged

Conversation

maartenvanvliet
Copy link
Member

Adds missing invoice attributes to the Invoice struct.

See: https://stripe.com/docs/api/invoices/object and https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.yaml

Another attribute, payment_intent is also sent by Stripe, this is not documented so I've not added it.

@snewcomer
Copy link
Collaborator

@maartenvanvliet Would you mind updating this branch with master? Just merged in some dialyxir additions!

@@ -51,6 +53,7 @@ defmodule Stripe.Invoice do
receipt_number: String.t() | nil,
starting_balance: integer,
statement_descriptor: String.t() | nil,
status: String.t(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

String.t() | nil

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@@ -33,10 +33,12 @@ defmodule Stripe.Invoice do
currency: String.t(),
customer: Stripe.id() | Stripe.Customer.t(),
date: Stripe.timestamp(),
default_source: String.t() | nil,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like one can pass this field to update and create as well

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@coveralls
Copy link

Coverage Status

Coverage remained the same at 82.505% when pulling 2433af0 on maartenvanvliet:issues/missing_invoice_attrs into 5eba509 on code-corps:master.

@snewcomer
Copy link
Collaborator

@maartenvanvliet Feel free to merge in master when you have a chance. Just to make sure we don't miss any dialyzer errors 👍. Then is is g2g! Nice work!

@maartenvanvliet
Copy link
Member Author

I rebased on master 😀

@snewcomer snewcomer merged commit 66f94e4 into beam-community:master Nov 14, 2018
@maartenvanvliet maartenvanvliet deleted the issues/missing_invoice_attrs branch November 14, 2018 18:28
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.

None yet

3 participants