Skip to content

Commit

Permalink
Codegen for openapi v213
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Dec 8, 2022
1 parent a91857a commit b6d6b23
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v212
v213
2 changes: 1 addition & 1 deletion types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ declare module 'stripe' {
failure_balance_transaction: string | Stripe.BalanceTransaction | null;

/**
* Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/api#errors) for a list of codes).
* Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/error-codes) for a list of codes).
*/
failure_code: string | null;

Expand Down
14 changes: 9 additions & 5 deletions types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,14 +564,14 @@ declare module 'stripe' {

interface CustomerListPaymentMethodsParams extends PaginationParams {
/**
* A required filter on the list, based on the object `type` field.
* Specifies which fields in the response should be expanded.
*/
type: CustomerListPaymentMethodsParams.Type;
expand?: Array<string>;

/**
* Specifies which fields in the response should be expanded.
* An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
*/
expand?: Array<string>;
type?: CustomerListPaymentMethodsParams.Type;
}

namespace CustomerListPaymentMethodsParams {
Expand Down Expand Up @@ -1068,7 +1068,11 @@ declare module 'stripe' {
*/
listPaymentMethods(
id: string,
params: CustomerListPaymentMethodsParams,
params?: CustomerListPaymentMethodsParams,
options?: RequestOptions
): ApiListPromise<Stripe.PaymentMethod>;
listPaymentMethods(
id: string,
options?: RequestOptions
): ApiListPromise<Stripe.PaymentMethod>;

Expand Down
13 changes: 7 additions & 6 deletions types/PaymentMethodsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,6 @@ declare module 'stripe' {
}

interface PaymentMethodListParams extends PaginationParams {
/**
* A required filter on the list, based on the object `type` field.
*/
type: PaymentMethodListParams.Type;

/**
* The ID of the customer whose PaymentMethods will be retrieved.
*/
Expand All @@ -712,6 +707,11 @@ declare module 'stripe' {
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
*/
type?: PaymentMethodListParams.Type;
}

namespace PaymentMethodListParams {
Expand Down Expand Up @@ -806,9 +806,10 @@ declare module 'stripe' {
* Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
*/
list(
params: PaymentMethodListParams,
params?: PaymentMethodListParams,
options?: RequestOptions
): ApiListPromise<Stripe.PaymentMethod>;
list(options?: RequestOptions): ApiListPromise<Stripe.PaymentMethod>;

/**
* Attaches a PaymentMethod object to a Customer.
Expand Down

0 comments on commit b6d6b23

Please sign in to comment.