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 Updates #1552

Merged
merged 1 commit into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v190
v193
9 changes: 9 additions & 0 deletions types/2022-08-01/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ declare module 'stripe' {

paynow?: PaymentMethodDetails.Paynow;

pix?: PaymentMethodDetails.Pix;

promptpay?: PaymentMethodDetails.Promptpay;

sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
Expand Down Expand Up @@ -1568,6 +1570,13 @@ declare module 'stripe' {
reference: string | null;
}

interface Pix {
/**
* Unique transaction id generated by BCB
*/
bank_transaction_id?: string | null;
}

interface Promptpay {
/**
* Bill reference generated by PromptPay
Expand Down
26 changes: 25 additions & 1 deletion types/2022-08-01/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ declare module 'stripe' {

/**
* The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.`
* This value is only present when the session is active.
*/
url: string | null;
}
Expand Down Expand Up @@ -511,6 +512,8 @@ declare module 'stripe' {

paynow?: PaymentMethodOptions.Paynow;

pix?: PaymentMethodOptions.Pix;

sepa_debit?: PaymentMethodOptions.SepaDebit;

sofort?: PaymentMethodOptions.Sofort;
Expand Down Expand Up @@ -897,6 +900,13 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface Pix {
/**
* The number of seconds after which Pix payment will expire.
*/
expires_after_seconds: number | null;
}

interface SepaDebit {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
Expand Down Expand Up @@ -1536,7 +1546,8 @@ declare module 'stripe' {
/**
* A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
*
* Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
* In `payment` and `subscription` mode, you can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
* It is required in `setup` mode.
*
* Read more about the supported payment methods and their requirements in our [payment
* method details guide](https://stripe.com/docs/payments/checkout/payment-methods).
Expand Down Expand Up @@ -2124,6 +2135,11 @@ declare module 'stripe' {
*/
paynow?: PaymentMethodOptions.Paynow;

/**
* contains details about the Pix payment method options.
*/
pix?: PaymentMethodOptions.Pix;

/**
* contains details about the Sepa Debit payment method options.
*/
Expand Down Expand Up @@ -2568,6 +2584,13 @@ declare module 'stripe' {
tos_shown_and_accepted?: boolean;
}

interface Pix {
/**
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
*/
expires_after_seconds?: number;
}

interface SepaDebit {
/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
Expand Down Expand Up @@ -2684,6 +2707,7 @@ declare module 'stripe' {
| 'oxxo'
| 'p24'
| 'paynow'
| 'pix'
| 'promptpay'
| 'sepa_debit'
| 'sofort'
Expand Down
1 change: 1 addition & 0 deletions types/2022-08-01/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ declare module 'stripe' {
| 'oxxo'
| 'p24'
| 'paynow'
| 'pix'
| 'promptpay'
| 'sepa_debit'
| 'sofort'
Expand Down
39 changes: 39 additions & 0 deletions types/2022-08-01/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ declare module 'stripe' {
*/
footer: string | null;

/**
* Details of the invoice that was cloned. See the [revision documentation](https://stripe.com/docs/invoicing/invoice-revisions) for more details.
*/
from_invoice: Invoice.FromInvoice | null;

/**
* The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
*/
Expand All @@ -244,6 +249,11 @@ declare module 'stripe' {
*/
last_finalization_error: Invoice.LastFinalizationError | null;

/**
* The ID of the most recent non-draft revision of this invoice
*/
latest_revision: string | Stripe.Invoice | null;

/**
* The individual line items that make up the invoice. `lines` is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.
*/
Expand Down Expand Up @@ -537,6 +547,18 @@ declare module 'stripe' {
value: string;
}

interface FromInvoice {
/**
* The relation between this invoice and the cloned invoice
*/
action: string;

/**
* The invoice that was cloned.
*/
invoice: string | Stripe.Invoice;
}

interface LastFinalizationError {
/**
* For card errors, the ID of the failed charge.
Expand Down Expand Up @@ -1041,6 +1063,11 @@ declare module 'stripe' {
*/
footer?: string;

/**
* Revise an existing invoice. The new invoice will be created in `status=draft`. See the [revision documentation](https://stripe.com/docs/invoicing/invoice-revisions) for more details.
*/
from_invoice?: InvoiceCreateParams.FromInvoice;

/**
* 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`.
*/
Expand Down Expand Up @@ -1118,6 +1145,18 @@ declare module 'stripe' {
discount?: string;
}

interface FromInvoice {
/**
* The relation between the new invoice and the original invoice. Currently, only 'revision' is permitted
*/
action: 'revision';

/**
* The `id` of the invoice that will be cloned.
*/
invoice: string;
}

interface PaymentSettings {
/**
* ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
Expand Down
10 changes: 10 additions & 0 deletions types/2022-08-01/Issuing/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@ declare module 'stripe' {
}

interface DisputeCreateParams {
/**
* The dispute amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If not set, defaults to the full transaction amount.
*/
amount?: number;

/**
* Evidence provided for the dispute.
*/
Expand Down Expand Up @@ -662,6 +667,11 @@ declare module 'stripe' {
}

interface DisputeUpdateParams {
/**
* The dispute amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
*/
amount?: number;

/**
* Evidence provided for the dispute.
*/
Expand Down
Loading