Skip to content

Commit

Permalink
Update generated code (#1734)
Browse files Browse the repository at this point in the history
* Update generated code for v279

* Update generated code for v281

* Update generated code for v283

* Update generated code for v284

* Update generated code for v285

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Mar 30, 2023
1 parent d5ac402 commit 83c61c6
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 45 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v277
v285
5 changes: 0 additions & 5 deletions src/resources/Tax/Transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;

export const Transactions = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v1/tax/transactions',
}),

retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/tax/transactions/{transaction}',
Expand Down
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,16 @@ declare module 'stripe' {
*/
executives_provided?: boolean;

/**
* The export license ID number of the company, also referred as Import Export Code (India only).
*/
export_license_id?: string;

/**
* The purpose code to use for export transactions (India only).
*/
export_purpose_code?: string;

/**
* The company's legal name.
*/
Expand Down
20 changes: 20 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,16 @@ declare module 'stripe' {
*/
executives_provided?: boolean;

/**
* The export license ID number of the company, also referred as Import Export Code (India only).
*/
export_license_id?: string;

/**
* The purpose code to use for export transactions (India only).
*/
export_purpose_code?: string;

/**
* The company's legal name.
*/
Expand Down Expand Up @@ -1824,6 +1834,16 @@ declare module 'stripe' {
*/
executives_provided?: boolean;

/**
* The export license ID number of the company, also referred as Import Export Code (India only).
*/
export_license_id?: string;

/**
* The purpose code to use for export transactions (India only).
*/
export_purpose_code?: string;

/**
* The company's legal name.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/BankAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ declare module 'stripe' {
/**
* For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a transfer sent to this bank account fails, we'll set the status to `errored` and will not continue to send transfers until the bank details are updated.
*
* For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
* For external accounts, possible values are `new`, `errored` and `verification_failed`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated. In India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
*/
status: string;
}
Expand Down
8 changes: 1 addition & 7 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -952,13 +952,7 @@ declare module 'stripe' {
tracking_number?: string | null;
}

type Status =
| 'deleted'
| 'draft'
| 'open'
| 'paid'
| 'uncollectible'
| 'void';
type Status = 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';

interface StatusTransitions {
/**
Expand Down
30 changes: 0 additions & 30 deletions types/Tax/TransactionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,6 @@
declare module 'stripe' {
namespace Stripe {
namespace Tax {
interface TransactionCreateParams {
/**
* Tax Calculation ID to be used as input when creating the transaction.
*/
from_calculation: string;

/**
* A custom order or sale identifier, such as 'myOrder_123'. Must be unique across all transactions including reversals.
*/
reference: string;

/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* 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`.
*/
metadata?: Stripe.MetadataParam;
}

interface TransactionRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
Expand Down Expand Up @@ -147,14 +125,6 @@ declare module 'stripe' {
}

class TransactionsResource {
/**
* Creates a Tax Transaction from a calculation.
*/
create(
params: TransactionCreateParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Tax.Transaction>>;

/**
* Retrieves a Tax Transaction object.
*/
Expand Down
5 changes: 5 additions & 0 deletions types/TestHelpers/Terminal/ReadersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ declare module 'stripe' {
namespace TestHelpers {
namespace Terminal {
interface ReaderPresentPaymentMethodParams {
/**
* Simulated on-reader tip amount.
*/
amount_tip?: number;

/**
* Simulated data for the card_present payment method.
*/
Expand Down
10 changes: 10 additions & 0 deletions types/TokensResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ declare module 'stripe' {
*/
executives_provided?: boolean;

/**
* The export license ID number of the company, also referred as Import Export Code (India only).
*/
export_license_id?: string;

/**
* The purpose code to use for export transactions (India only).
*/
export_purpose_code?: string;

/**
* The company's legal name.
*/
Expand Down

0 comments on commit 83c61c6

Please sign in to comment.