DefinitelyTyped/types/stripe
Raúl Acuña 046f80013c Stripe: Update Invoice properties to match version 2019-03-14 (#34597)
* Change application_fee to application_fee_amount

On API version 2019-03-14, the application_fee parameter on invoice API methods and the application_fee field on the invoice object have both been renamed to application_fee_amount.

Documentation: https://stripe.com/docs/api/invoices/object#invoice_object-application_fee_amount

* Break lines on column 100

* Add created property

Version 2019-03-14: The date property has been renamed to created.
https://stripe.com/docs/api/invoices/object#invoice_object-created

* Add custom_fields

https://stripe.com/docs/api/invoices/object#invoice_object-custom_fields

Add custom fields type definition

https://stripe.com/docs/api/invoices/object#invoice_object-custom_fields

* Customer is expandable

https://stripe.com/docs/api/invoices/object#invoice_object-customer

* Add default_source

https://stripe.com/docs/api/invoices/object#invoice_object-default_source

* Add footer property to invoice

https://stripe.com/docs/api/invoices/object#invoice_object-footer

* Add status and status_transitions

https://stripe.com/docs/api/invoices/object#invoice_object-status

* Add threshold_reason property

https://stripe.com/docs/api/invoices/object#invoice_object-threshold_reason

* Remove unnecessary qualifiers

* Update tests to use latest stripe api version

* Revert "Update tests to use latest stripe api version"

This reverts commit 83fbc3b90475328d458ceb99b7ca64d9d89e8542.

* Instead of replacing application_fee, add the new name

* Add a @deprecated message on old property
2019-04-25 17:57:31 -07:00
..
index.d.ts Stripe: Update Invoice properties to match version 2019-03-14 (#34597) 2019-04-25 17:57:31 -07:00
stripe-tests.ts
tsconfig.json
tslint.json