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 generated code #1863

Merged
merged 11 commits into from
Aug 3, 2023
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v433
v446
8 changes: 4 additions & 4 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ declare module 'stripe' {
/**
* The user agent of the browser from which the account representative accepted the service agreement.
*/
user_agent?: string;
user_agent?: Stripe.Emptyable<string>;
}
}

Expand Down Expand Up @@ -1255,7 +1255,7 @@ declare module 'stripe' {
/**
* The user agent of the browser from which the account representative accepted the service agreement.
*/
user_agent?: string;
user_agent?: Stripe.Emptyable<string>;
}
}
}
Expand Down Expand Up @@ -2365,7 +2365,7 @@ declare module 'stripe' {
/**
* The user agent of the browser from which the account representative accepted the service agreement.
*/
user_agent?: string;
user_agent?: Stripe.Emptyable<string>;
}
}

Expand Down Expand Up @@ -2498,7 +2498,7 @@ declare module 'stripe' {
/**
* The user agent of the browser from which the account representative accepted the service agreement.
*/
user_agent?: string;
user_agent?: Stripe.Emptyable<string>;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions types/ApplicationFees.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ declare module 'stripe' {
account: string | Stripe.Account;

/**
* Amount earned, in %s.
* Amount earned, in cents (or local equivalent).
*/
amount: number;

/**
* Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued)
* Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
*/
amount_refunded: number;

Expand Down
8 changes: 4 additions & 4 deletions types/BalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare module 'stripe' {
object: 'balance_transaction';

/**
* Gross amount of the transaction, in %s.
* Gross amount of the transaction, in cents (or local equivalent).
*/
amount: number;

Expand Down Expand Up @@ -50,17 +50,17 @@ declare module 'stripe' {
exchange_rate: number | null;

/**
* Fees (in %s) paid for this transaction.
* Fees (in cents (or local equivalent)) paid for this transaction.
*/
fee: number;

/**
* Detailed breakdown of fees (in %s) paid for this transaction.
* Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.
*/
fee_details: Array<BalanceTransaction.FeeDetail>;

/**
* Net amount of the transaction, in %s.
* Net amount of the transaction, in cents (or local equivalent).
*/
net: number;

Expand Down
4 changes: 2 additions & 2 deletions types/BillingPortal/ConfigurationsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare module 'stripe' {
/**
* The messaging shown to customers in the portal.
*/
headline?: string;
headline?: Stripe.Emptyable<string>;

/**
* A link to the business's publicly available privacy policy.
Expand Down Expand Up @@ -289,7 +289,7 @@ declare module 'stripe' {
/**
* The messaging shown to customers in the portal.
*/
headline?: string;
headline?: Stripe.Emptyable<string>;

/**
* A link to the business's publicly available privacy policy.
Expand Down
4 changes: 2 additions & 2 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ declare module 'stripe' {
amount: number;

/**
* Amount in %s captured (can be less than the amount attribute on the charge if a partial capture was made).
* Amount in cents (or local equivalent) captured (can be less than the amount attribute on the charge if a partial capture was made).
*/
amount_captured: number;

/**
* Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund was issued).
* Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the charge if a partial refund was issued).
*/
amount_refunded: number;

Expand Down
4 changes: 2 additions & 2 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ declare module 'stripe' {
taxability_reason: Tax.TaxabilityReason | null;

/**
* The amount on which tax is calculated, in %s.
* The amount on which tax is calculated, in cents (or local equivalent).
*/
taxable_amount: number | null;
}
Expand Down Expand Up @@ -1742,7 +1742,7 @@ declare module 'stripe' {
taxability_reason: Tax.TaxabilityReason | null;

/**
* The amount on which tax is calculated, in %s.
* The amount on which tax is calculated, in cents (or local equivalent).
*/
taxable_amount: number | null;
}
Expand Down
6 changes: 3 additions & 3 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ declare module 'stripe' {

interface SubscriptionData {
/**
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
*/
application_fee_percent?: number;

Expand All @@ -2042,7 +2042,7 @@ declare module 'stripe' {
/**
* The subscription's description, meant to be displayable to the customer.
* Use this field to optionally store an explanation of the subscription
* for rendering in Stripe hosted surfaces.
* for rendering in the [customer portal](https://stripe.com/docs/customer-management).
*/
description?: string;

Expand Down Expand Up @@ -2095,7 +2095,7 @@ declare module 'stripe' {

interface TransferData {
/**
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
*/
amount_percent?: number;

Expand Down
2 changes: 1 addition & 1 deletion types/ConnectCollectionTransfers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare module 'stripe' {
object: 'connect_collection_transfer';

/**
* Amount transferred, in %s.
* Amount transferred, in cents (or local equivalent).
*/
amount: number;

Expand Down
2 changes: 1 addition & 1 deletion types/Coupons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ declare module 'stripe' {
name: string | null;

/**
* Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a %s100 invoice %s50 instead.
* Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a $ (or local equivalent)100 invoice $ (or local equivalent)50 instead.
*/
percent_off: number | null;

Expand Down
14 changes: 7 additions & 7 deletions types/CreditNoteLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ declare module 'stripe' {
object: 'credit_note_line_item';

/**
* The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
* The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
*/
amount: number;

/**
* The integer amount in %s representing the amount being credited for this line item, excluding all tax and discounts.
* The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.
*/
amount_excluding_tax: number | null;

Expand All @@ -32,7 +32,7 @@ declare module 'stripe' {
description: string | null;

/**
* The integer amount in %s representing the discount being credited for this line item.
* The integer amount in cents (or local equivalent) representing the discount being credited for this line item.
*/
discount_amount: number;

Expand Down Expand Up @@ -82,15 +82,15 @@ declare module 'stripe' {
unit_amount_decimal: string | null;

/**
* The amount in %s representing the unit amount being credited for this line item, excluding all tax and discounts.
* The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.
*/
unit_amount_excluding_tax: string | null;
}

namespace CreditNoteLineItem {
interface DiscountAmount {
/**
* The amount, in %s, of the discount.
* The amount, in cents (or local equivalent), of the discount.
*/
amount: number;

Expand All @@ -102,7 +102,7 @@ declare module 'stripe' {

interface TaxAmount {
/**
* The amount, in %s, of the tax.
* The amount, in cents (or local equivalent), of the tax.
*/
amount: number;

Expand All @@ -122,7 +122,7 @@ declare module 'stripe' {
taxability_reason: TaxAmount.TaxabilityReason | null;

/**
* The amount on which tax is calculated, in %s.
* The amount on which tax is calculated, in cents (or local equivalent).
*/
taxable_amount: number | null;
}
Expand Down
20 changes: 10 additions & 10 deletions types/CreditNotes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare module 'stripe' {
object: 'credit_note';

/**
* The integer amount in %s representing the total amount of the credit note, including tax.
* The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax.
*/
amount: number;

Expand Down Expand Up @@ -52,7 +52,7 @@ declare module 'stripe' {
| null;

/**
* The integer amount in %s representing the total amount of discount that was credited.
* The integer amount in cents (or local equivalent) representing the total amount of discount that was credited.
*/
discount_amount: number;

Expand Down Expand Up @@ -127,12 +127,12 @@ declare module 'stripe' {
status: CreditNote.Status;

/**
* The integer amount in %s representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
* The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
*/
subtotal: number;

/**
* The integer amount in %s representing the amount of the credit note, excluding all tax and invoice level discounts.
* The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding all tax and invoice level discounts.
*/
subtotal_excluding_tax: number | null;

Expand All @@ -142,12 +142,12 @@ declare module 'stripe' {
tax_amounts: Array<CreditNote.TaxAmount>;

/**
* The integer amount in %s representing the total amount of the credit note, including tax and all discount.
* The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax and all discount.
*/
total: number;

/**
* The integer amount in %s representing the total amount of the credit note, excluding tax, but including discounts.
* The integer amount in cents (or local equivalent) representing the total amount of the credit note, excluding tax, but including discounts.
*/
total_excluding_tax: number | null;

Expand All @@ -165,7 +165,7 @@ declare module 'stripe' {
namespace CreditNote {
interface DiscountAmount {
/**
* The amount, in %s, of the discount.
* The amount, in cents (or local equivalent), of the discount.
*/
amount: number;

Expand Down Expand Up @@ -228,7 +228,7 @@ declare module 'stripe' {
taxability_reason: Tax.TaxabilityReason | null;

/**
* The amount on which tax is calculated, in %s.
* The amount on which tax is calculated, in cents (or local equivalent).
*/
taxable_amount: number | null;
}
Expand Down Expand Up @@ -260,7 +260,7 @@ declare module 'stripe' {

interface TaxAmount {
/**
* The amount, in %s, of the tax.
* The amount, in cents (or local equivalent), of the tax.
*/
amount: number;

Expand All @@ -280,7 +280,7 @@ declare module 'stripe' {
taxability_reason: TaxAmount.TaxabilityReason | null;

/**
* The amount on which tax is calculated, in %s.
* The amount on which tax is calculated, in cents (or local equivalent).
*/
taxable_amount: number | null;
}
Expand Down
2 changes: 1 addition & 1 deletion types/FeeRefunds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module 'stripe' {
object: 'fee_refund';

/**
* Amount, in %s.
* Amount, in cents (or local equivalent).
*/
amount: number;

Expand Down
12 changes: 6 additions & 6 deletions types/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ declare module 'stripe' {
object: 'line_item';

/**
* The amount, in %s.
* The amount, in cents (or local equivalent).
*/
amount: number;

/**
* The integer amount in %s representing the amount for this line item, excluding all tax and discounts.
* The integer amount in cents (or local equivalent) representing the amount for this line item, excluding all tax and discounts.
*/
amount_excluding_tax: number | null;

Expand Down Expand Up @@ -119,15 +119,15 @@ declare module 'stripe' {
type: InvoiceLineItem.Type;

/**
* The amount in %s representing the unit amount for this line item, excluding all tax and discounts.
* The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts.
*/
unit_amount_excluding_tax: string | null;
}

namespace InvoiceLineItem {
interface DiscountAmount {
/**
* The amount, in %s, of the discount.
* The amount, in cents (or local equivalent), of the discount.
*/
amount: number;

Expand Down Expand Up @@ -172,7 +172,7 @@ declare module 'stripe' {

interface TaxAmount {
/**
* The amount, in %s, of the tax.
* The amount, in cents (or local equivalent), of the tax.
*/
amount: number;

Expand All @@ -192,7 +192,7 @@ declare module 'stripe' {
taxability_reason: TaxAmount.TaxabilityReason | null;

/**
* The amount on which tax is calculated, in %s.
* The amount on which tax is calculated, in cents (or local equivalent).
*/
taxable_amount: number | null;
}
Expand Down
Loading
Loading