Skip to content

Commit

Permalink
Update generated code for v994
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 26, 2024
1 parent ced2e4b commit 7368a7b
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v993
v994
1 change: 1 addition & 0 deletions types/Invoices.d.ts
Expand Up @@ -928,6 +928,7 @@ declare module 'stripe' {
| 'setup_intent_mandate_invalid'
| 'setup_intent_setup_attempt_expired'
| 'setup_intent_unexpected_state'
| 'shipping_address_invalid'
| 'shipping_calculation_failed'
| 'sku_inactive'
| 'state_unsupported'
Expand Down
1 change: 1 addition & 0 deletions types/PaymentIntents.d.ts
Expand Up @@ -526,6 +526,7 @@ declare module 'stripe' {
| 'setup_intent_mandate_invalid'
| 'setup_intent_setup_attempt_expired'
| 'setup_intent_unexpected_state'
| 'shipping_address_invalid'
| 'shipping_calculation_failed'
| 'sku_inactive'
| 'state_unsupported'
Expand Down
1 change: 1 addition & 0 deletions types/SetupAttempts.d.ts
Expand Up @@ -769,6 +769,7 @@ declare module 'stripe' {
| 'setup_intent_mandate_invalid'
| 'setup_intent_setup_attempt_expired'
| 'setup_intent_unexpected_state'
| 'shipping_address_invalid'
| 'shipping_calculation_failed'
| 'sku_inactive'
| 'state_unsupported'
Expand Down
1 change: 1 addition & 0 deletions types/SetupIntents.d.ts
Expand Up @@ -439,6 +439,7 @@ declare module 'stripe' {
| 'setup_intent_mandate_invalid'
| 'setup_intent_setup_attempt_expired'
| 'setup_intent_unexpected_state'
| 'shipping_address_invalid'
| 'shipping_calculation_failed'
| 'sku_inactive'
| 'state_unsupported'
Expand Down
9 changes: 9 additions & 0 deletions types/Tax/Calculations.d.ts
Expand Up @@ -51,6 +51,11 @@ declare module 'stripe' {
*/
livemode: boolean;

/**
* The details of the ship from location, such as the address.
*/
ship_from_details: Calculation.ShipFromDetails | null;

/**
* The shipping cost details for the calculation.
*/
Expand Down Expand Up @@ -202,6 +207,10 @@ declare module 'stripe' {
}
}

interface ShipFromDetails {
address: Stripe.Address;
}

interface ShippingCost {
/**
* The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
Expand Down
46 changes: 46 additions & 0 deletions types/Tax/CalculationsResource.d.ts
Expand Up @@ -29,6 +29,11 @@ declare module 'stripe' {
*/
expand?: Array<string>;

/**
* Details about the address from which the goods are being shipped.
*/
ship_from_details?: CalculationCreateParams.ShipFromDetails;

/**
* Shipping cost details to be used for the calculation.
*/
Expand Down Expand Up @@ -235,6 +240,47 @@ declare module 'stripe' {
type TaxBehavior = 'exclusive' | 'inclusive';
}

interface ShipFromDetails {
/**
* The address from which the goods are being shipped from.
*/
address: ShipFromDetails.Address;
}

namespace ShipFromDetails {
interface Address {
/**
* City, district, suburb, town, or village.
*/
city?: Stripe.Emptyable<string>;

/**
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
*/
country: string;

/**
* Address line 1 (e.g., street, PO Box, or company name).
*/
line1?: Stripe.Emptyable<string>;

/**
* Address line 2 (e.g., apartment, suite, unit, or building).
*/
line2?: Stripe.Emptyable<string>;

/**
* ZIP or postal code.
*/
postal_code?: Stripe.Emptyable<string>;

/**
* State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX".
*/
state?: Stripe.Emptyable<string>;
}
}

interface ShippingCost {
/**
* A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
Expand Down
9 changes: 9 additions & 0 deletions types/Tax/Transactions.d.ts
Expand Up @@ -61,6 +61,11 @@ declare module 'stripe' {
*/
reversal: Transaction.Reversal | null;

/**
* The details of the ship from location, such as the address.
*/
ship_from_details: Transaction.ShipFromDetails | null;

/**
* The shipping cost details for the transaction.
*/
Expand Down Expand Up @@ -209,6 +214,10 @@ declare module 'stripe' {
original_transaction: string | null;
}

interface ShipFromDetails {
address: Stripe.Address;
}

interface ShippingCost {
/**
* The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
Expand Down

0 comments on commit 7368a7b

Please sign in to comment.