Skip to content

Commit

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

* Update generated code for v883

* Update generated code for v884

* Update generated code for v888

* Update generated code for v889

* Update generated code for v890

* Update generated code for v890

* Update generated code for v891

* Update generated code for v894

* Update generated code for v895

* Update generated code for v896

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <[email protected]>
  • Loading branch information
stripe-openapi[bot] and ramya-stripe authored Mar 21, 2024
1 parent 7aaf448 commit ce54afe
Show file tree
Hide file tree
Showing 32 changed files with 2,493 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v878
v896
7 changes: 7 additions & 0 deletions src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {Cards as TestHelpersIssuingCards} from './resources/TestHelpers/Issuing/
import {Cards as IssuingCards} from './resources/Issuing/Cards.js';
import {Configurations as BillingPortalConfigurations} from './resources/BillingPortal/Configurations.js';
import {Configurations as TerminalConfigurations} from './resources/Terminal/Configurations.js';
import {ConfirmationTokens as TestHelpersConfirmationTokens} from './resources/TestHelpers/ConfirmationTokens.js';
import {ConnectionTokens as TerminalConnectionTokens} from './resources/Terminal/ConnectionTokens.js';
import {CreditReversals as TreasuryCreditReversals} from './resources/Treasury/CreditReversals.js';
import {Customers as TestHelpersCustomers} from './resources/TestHelpers/Customers.js';
Expand Down Expand Up @@ -39,6 +40,7 @@ import {Refunds as TestHelpersRefunds} from './resources/TestHelpers/Refunds.js'
import {Registrations as TaxRegistrations} from './resources/Tax/Registrations.js';
import {ReportRuns as ReportingReportRuns} from './resources/Reporting/ReportRuns.js';
import {ReportTypes as ReportingReportTypes} from './resources/Reporting/ReportTypes.js';
import {Requests as ForwardingRequests} from './resources/Forwarding/Requests.js';
import {ScheduledQueryRuns as SigmaScheduledQueryRuns} from './resources/Sigma/ScheduledQueryRuns.js';
import {Secrets as AppsSecrets} from './resources/Apps/Secrets.js';
import {Sessions as BillingPortalSessions} from './resources/BillingPortal/Sessions.js';
Expand Down Expand Up @@ -67,6 +69,7 @@ export {ApplicationFees} from './resources/ApplicationFees.js';
export {Balance} from './resources/Balance.js';
export {BalanceTransactions} from './resources/BalanceTransactions.js';
export {Charges} from './resources/Charges.js';
export {ConfirmationTokens} from './resources/ConfirmationTokens.js';
export {CountrySpecs} from './resources/CountrySpecs.js';
export {Coupons} from './resources/Coupons.js';
export {CreditNotes} from './resources/CreditNotes.js';
Expand Down Expand Up @@ -127,6 +130,9 @@ export const FinancialConnections = resourceNamespace('financialConnections', {
Sessions: FinancialConnectionsSessions,
Transactions: FinancialConnectionsTransactions,
});
export const Forwarding = resourceNamespace('forwarding', {
Requests: ForwardingRequests,
});
export const Identity = resourceNamespace('identity', {
VerificationReports: IdentityVerificationReports,
VerificationSessions: IdentityVerificationSessions,
Expand Down Expand Up @@ -166,6 +172,7 @@ export const Terminal = resourceNamespace('terminal', {
Readers: TerminalReaders,
});
export const TestHelpers = resourceNamespace('testHelpers', {
ConfirmationTokens: TestHelpersConfirmationTokens,
Customers: TestHelpersCustomers,
Refunds: TestHelpersRefunds,
TestClocks: TestHelpersTestClocks,
Expand Down
10 changes: 10 additions & 0 deletions src/resources/ConfirmationTokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../StripeResource.js';
const stripeMethod = StripeResource.method;
export const ConfirmationTokens = StripeResource.extend({
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/confirmation_tokens/{confirmation_token}',
}),
});
16 changes: 16 additions & 0 deletions src/resources/Forwarding/Requests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const Requests = StripeResource.extend({
create: stripeMethod({method: 'POST', fullPath: '/v1/forwarding/requests'}),
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/forwarding/requests/{id}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/forwarding/requests',
methodType: 'list',
}),
});
10 changes: 10 additions & 0 deletions src/resources/TestHelpers/ConfirmationTokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const ConfirmationTokens = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v1/test_helpers/confirmation_tokens',
}),
});
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ declare module 'stripe' {
*/
link_payments?: Capabilities.LinkPayments;

/**
* The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges.
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
*/
Expand Down Expand Up @@ -448,6 +453,8 @@ declare module 'stripe' {

type LinkPayments = 'active' | 'inactive' | 'pending';

type MobilepayPayments = 'active' | 'inactive' | 'pending';

type OxxoPayments = 'active' | 'inactive' | 'pending';

type P24Payments = 'active' | 'inactive' | 'pending';
Expand Down
24 changes: 24 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ declare module 'stripe' {
*/
link_payments?: Capabilities.LinkPayments;

/**
* The mobilepay_payments capability.
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The oxxo_payments capability.
*/
Expand Down Expand Up @@ -542,6 +547,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface MobilepayPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface OxxoPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -1723,6 +1735,11 @@ declare module 'stripe' {
*/
link_payments?: Capabilities.LinkPayments;

/**
* The mobilepay_payments capability.
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

/**
* The oxxo_payments capability.
*/
Expand Down Expand Up @@ -1963,6 +1980,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface MobilepayPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface OxxoPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down
40 changes: 40 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ declare module 'stripe' {

link?: PaymentMethodDetails.Link;

mobilepay?: PaymentMethodDetails.Mobilepay;

multibanco?: PaymentMethodDetails.Multibanco;

oxxo?: PaymentMethodDetails.Oxxo;
Expand Down Expand Up @@ -1635,6 +1637,39 @@ declare module 'stripe' {
country: string | null;
}

interface Mobilepay {
card: Mobilepay.Card | null;
}

namespace Mobilepay {
interface Card {
/**
* Brand of the card used in the transaction
*/
brand: string | null;

/**
* Two-letter ISO code representing the country of the card
*/
country: string | null;

/**
* Two digit number representing the card's expiration month
*/
exp_month: number | null;

/**
* Two digit number representing the card's expiration year
*/
exp_year: number | null;

/**
* The last 4 digits of the card
*/
last4: string | null;
}
}

interface Multibanco {
/**
* Entity number associated with this Multibanco payment.
Expand Down Expand Up @@ -1929,6 +1964,11 @@ declare module 'stripe' {
*/
last4: string | null;

/**
* Reference number to locate ACH payments with customer's bank.
*/
payment_reference?: string | null;

/**
* Routing number of the bank account.
*/
Expand Down
Loading

0 comments on commit ce54afe

Please sign in to comment.