Skip to content

Commit

Permalink
Merge pull request #926 from stripe/remi/codegen-75c2f60
Browse files Browse the repository at this point in the history
Multiple API changes
  • Loading branch information
remi-stripe authored Jun 23, 2020
2 parents 8cc596f + 8acda68 commit b0539ce
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
3 changes: 2 additions & 1 deletion types/2020-03-02/Files.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ declare module 'stripe' {
links?: ApiList<Stripe.FileLink> | null;

/**
* The purpose of the file. Possible values are `additional_verification`, `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document`, `pci_document`, `sigma_scheduled_query`, or `tax_document_user_upload`.
* The purpose of the file. Possible values are `additional_verification`, `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `document_provider_identity_document`, `finance_report_run`, `identity_document`, `pci_document`, `sigma_scheduled_query`, or `tax_document_user_upload`.
*/
purpose: string;

Expand Down Expand Up @@ -85,6 +85,7 @@ declare module 'stripe' {
| 'business_logo'
| 'customer_signature'
| 'dispute_evidence'
| 'document_provider_identity_document'
| 'finance_report_run'
| 'identity_document'
| 'pci_document'
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Issuing/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare module 'stripe' {
/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: MetadataParam;
metadata?: MetadataParam | null;
}

interface DisputeListParams extends PaginationParams {
Expand Down
21 changes: 21 additions & 0 deletions types/2020-03-02/LineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ declare module 'stripe' {
*/
description: string;

/**
* The discounts applied to the line item.
*/
discounts?: Array<LineItem.Discount>;

/**
* Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.
* [Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
Expand All @@ -56,6 +61,22 @@ declare module 'stripe' {
}

namespace LineItem {
interface Discount {
/**
* Discount amount for this line item.
*/
amount: number;

/**
* A discount represents the actual application of a coupon to a particular
* customer. It contains information about when the discount began and when it
* will end.
*
* Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
*/
discount: Stripe.Discount;
}

interface Tax {
/**
* Amount of tax for this line item.
Expand Down
2 changes: 2 additions & 0 deletions types/2020-03-02/Sources.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ declare module 'stripe' {

redirect_url?: string;

shipping_delay?: number;

shipping_first_name?: string;

shipping_last_name?: string;
Expand Down

0 comments on commit b0539ce

Please sign in to comment.