Skip to content

Commit

Permalink
Merge 5917bc2 into 36f101b
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Nov 10, 2022
2 parents 36f101b + 5917bc2 commit 802d7fe
Show file tree
Hide file tree
Showing 14 changed files with 717 additions and 12 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# Changelog

## 10.17.0 - 2022-11-08
* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates
* Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type`
* Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type`
* Add support for `reason_message` on `Issuing.Authorization.request_history[]`
* Add support for new value `webhook_error` on enum `Issuing.Authorization.request_history[].reason`

## 10.16.0 - 2022-11-03
* [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates
* Add support for `on_behalf_of` on `CheckoutSessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription`
* Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]`

## 10.16.0-beta.2 - 2022-11-02
* [#1598](https://github.com/stripe/stripe-node/pull/1598) API Updates for beta branch
* Updated beta APIs to the latest stable version
* Add support for `cashappPayments` and `zipPayments` on `Account`.
* Add support for `cashapp` and `zip` on `Charge`, `PaymentMethod`.
* Add support for `trialSettings` on `SubscriptionSchedule`.
* Add support for `trialSettings` on `SubscriptionSchedule`.

## 10.16.0-beta.1 - 2022-10-21
* [#1589](https://github.com/stripe/stripe-node/pull/1589) API Updates for beta branch
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v205
v207
5 changes: 0 additions & 5 deletions types/2022-08-01/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2565,11 +2565,6 @@ declare module 'stripe' {
* When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
*/
setup_future_usage?: 'none';

/**
* Confirm that the payer has accepted the P24 terms and conditions.
*/
tos_shown_and_accepted?: boolean;
}

interface Paypal {
Expand Down
4 changes: 2 additions & 2 deletions types/2022-08-01/Coupons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ declare module 'stripe' {
amount_off: number;
}

type Duration = 'forever' | 'once' | 'repeating';
type Duration = 'forever' | 'once' | 'repeating' | 'variable';
}

/**
Expand Down Expand Up @@ -217,7 +217,7 @@ declare module 'stripe' {
amount_off: number;
}

type Duration = 'forever' | 'once' | 'repeating';
type Duration = 'forever' | 'once' | 'repeating' | 'variable';
}

interface CouponRetrieveParams {
Expand Down
38 changes: 38 additions & 0 deletions types/2022-08-01/InvoiceItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface Period {
Expand Down Expand Up @@ -412,6 +431,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface Period {
Expand Down
152 changes: 152 additions & 0 deletions types/2022-08-01/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface FromInvoice {
Expand Down Expand Up @@ -1586,6 +1605,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface PaymentSettings {
Expand Down Expand Up @@ -2163,6 +2201,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface InvoiceItem {
Expand Down Expand Up @@ -2258,6 +2315,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface Period {
Expand Down Expand Up @@ -2385,6 +2461,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface PriceData {
Expand Down Expand Up @@ -2757,6 +2852,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface InvoiceItem {
Expand Down Expand Up @@ -2852,6 +2966,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface Period {
Expand Down Expand Up @@ -2979,6 +3112,25 @@ declare module 'stripe' {
* ID of an existing discount on the object (or one of its ancestors) to reuse.
*/
discount?: string;

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
}

namespace Discount {
interface DiscountEnd {
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;

/**
* The type of calculation made to determine when the discount ends.
*/
type: 'timestamp';
}
}

interface PriceData {
Expand Down
31 changes: 31 additions & 0 deletions types/2022-08-01/Issuing/Authorizations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ declare module 'stripe' {
* State where the seller is located
*/
state: string | null;

/**
* URL provided by the merchant on a 3DS request
*/
url?: string | null;
}

interface NetworkData {
Expand Down Expand Up @@ -271,6 +276,11 @@ declare module 'stripe' {
* The reason for the approval or decline.
*/
reason: RequestHistory.Reason;

/**
* If approve/decline decision is directly responsed to the webhook with json payload and if the response is invalid (e.g., parsing errors), we surface the detailed message via this field.
*/
reason_message: string | null;
}

namespace RequestHistory {
Expand All @@ -294,6 +304,7 @@ declare module 'stripe' {
| 'verification_failed'
| 'webhook_approved'
| 'webhook_declined'
| 'webhook_error'
| 'webhook_timeout';
}

Expand Down Expand Up @@ -336,6 +347,11 @@ declare module 'stripe' {
* Whether the cardholder provided an expiry date and if it matched Stripe's record.
*/
expiry_check: VerificationData.ExpiryCheck;

/**
* 3D Secure details.
*/
three_d_secure?: VerificationData.ThreeDSecure | null;
}

namespace VerificationData {
Expand All @@ -346,6 +362,21 @@ declare module 'stripe' {
type CvcCheck = 'match' | 'mismatch' | 'not_provided';

type ExpiryCheck = 'match' | 'mismatch' | 'not_provided';

interface ThreeDSecure {
/**
* The outcome of the 3D Secure authentication request.
*/
result: ThreeDSecure.Result;
}

namespace ThreeDSecure {
type Result =
| 'attempt_acknowledged'
| 'authenticated'
| 'failed'
| 'required';
}
}
}

Expand Down
Loading

0 comments on commit 802d7fe

Please sign in to comment.