Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #2213

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
* Add support for `bank` on `Treasury.FinancialAccountCreateParams.features.financial_addresses.aba`, `Treasury.FinancialAccountFeatures.financial_addresses.aba`, `Treasury.FinancialAccountUpdateFeaturesParams.financial_addresses.aba`, and `Treasury.FinancialAccountUpdateParams.features.financial_addresses.aba`
* [#2209](https://github.com/stripe/stripe-node/pull/2209) Ramya/merge node beta

## 17.2.1 - 2024-10-18
* [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes

- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
* [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link

## 17.2.0 - 2024-10-09
* [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed
* `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1314
v1319
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2024-09-30.acacia';
export const ApiVersion = '2024-10-28.acacia';
4 changes: 4 additions & 0 deletions src/resources/PaymentIntents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export const PaymentIntents = StripeResource.extend({
fullPath: '/v1/payment_intents/search',
methodType: 'search',
}),
triggerAction: stripeMethod({
method: 'POST',
fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
}),
verifyMicrodeposits: stripeMethod({
method: 'POST',
fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
Expand Down
2 changes: 2 additions & 0 deletions src/resources/V2/Core.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
import {EventDestinations} from './Core/EventDestinations.js';
import {Events} from './Core/Events.js';
export const Core = StripeResource.extend({
constructor: function(...args: any) {
StripeResource.apply(this, args);
this.eventDestinations = new EventDestinations(...args);
this.events = new Events(...args);
},
});
39 changes: 39 additions & 0 deletions src/resources/V2/Core/EventDestinations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const EventDestinations = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations',
}),
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v2/core/event_destinations/{id}',
}),
update: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v2/core/event_destinations',
methodType: 'list',
}),
del: stripeMethod({
method: 'DELETE',
fullPath: '/v2/core/event_destinations/{id}',
}),
disable: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}/disable',
}),
enable: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}/enable',
}),
ping: stripeMethod({
method: 'POST',
fullPath: '/v2/core/event_destinations/{id}/ping',
}),
});
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ declare module 'stripe' {
*/
payouts_list?: Components.PayoutsList;

/**
* Configuration for the recipients component.
*/
recipients?: Components.Recipients;

/**
Expand Down Expand Up @@ -361,6 +364,9 @@ declare module 'stripe' {
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: FinancialAccount.Features;
}

Expand Down Expand Up @@ -640,14 +646,16 @@ declare module 'stripe' {
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: Recipients.Features;
}

namespace Recipients {
interface Features {}
interface Features {
/**
* Whether to allow sending money.
*/
send_money?: boolean;
}
}

interface ReportingChart {
Expand Down
28 changes: 28 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,16 @@ declare module 'stripe' {
*/
grabpay_payments?: Capabilities.GrabpayPayments;

/**
* The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
*/
id_bank_transfer_payments?: Capabilities.IdBankTransferPayments;

/**
* The status of Bank BCA onboarding of the account.
*/
id_bank_transfer_payments_bca?: Capabilities.IdBankTransferPaymentsBca;

/**
* The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
*/
Expand Down Expand Up @@ -578,6 +588,10 @@ declare module 'stripe' {

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

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

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

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

type IndiaInternationalPayments = 'active' | 'inactive' | 'pending';
Expand Down Expand Up @@ -1363,6 +1377,8 @@ declare module 'stripe' {
interface Settings {
bacs_debit_payments?: Settings.BacsDebitPayments;

bank_bca_onboarding?: Settings.BankBcaOnboarding;

branding: Settings.Branding;

capital?: Settings.Capital;
Expand Down Expand Up @@ -1399,6 +1415,18 @@ declare module 'stripe' {
service_user_number: string | null;
}

interface BankBcaOnboarding {
/**
* Bank BCA business account holder name.
*/
account_holder_name?: string;

/**
* Bank BCA business account number.
*/
business_account_number?: string;
}

interface Branding {
/**
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
Expand Down
84 changes: 83 additions & 1 deletion types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ declare module 'stripe' {
*/
grabpay_payments?: Capabilities.GrabpayPayments;

/**
* The id_bank_transfer_payments capability.
*/
id_bank_transfer_payments?: Capabilities.IdBankTransferPayments;

/**
* The id_bank_transfer_payments_bca capability.
*/
id_bank_transfer_payments_bca?: Capabilities.IdBankTransferPaymentsBca;

/**
* The ideal_payments capability.
*/
Expand Down Expand Up @@ -668,6 +678,20 @@ declare module 'stripe' {
requested?: boolean;
}

interface IdBankTransferPayments {
/**
* 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 IdBankTransferPaymentsBca {
/**
* 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 IdealPayments {
/**
* 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 @@ -1593,6 +1617,11 @@ declare module 'stripe' {
*/
bacs_debit_payments?: Settings.BacsDebitPayments;

/**
* Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
*/
bank_bca_onboarding?: Settings.BankBcaOnboarding;

/**
* Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
*/
Expand Down Expand Up @@ -1642,6 +1671,18 @@ declare module 'stripe' {
display_name?: string;
}

interface BankBcaOnboarding {
/**
* Bank BCA business account holder name
*/
account_holder_name?: string;

/**
* Bank BCA business account number
*/
business_account_number?: string;
}

interface Branding {
/**
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
Expand Down Expand Up @@ -2214,6 +2255,16 @@ declare module 'stripe' {
*/
grabpay_payments?: Capabilities.GrabpayPayments;

/**
* The id_bank_transfer_payments capability.
*/
id_bank_transfer_payments?: Capabilities.IdBankTransferPayments;

/**
* The id_bank_transfer_payments_bca capability.
*/
id_bank_transfer_payments_bca?: Capabilities.IdBankTransferPaymentsBca;

/**
* The ideal_payments capability.
*/
Expand Down Expand Up @@ -2573,6 +2624,20 @@ declare module 'stripe' {
requested?: boolean;
}

interface IdBankTransferPayments {
/**
* 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 IdBankTransferPaymentsBca {
/**
* 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 IdealPayments {
/**
* 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 @@ -3407,6 +3472,11 @@ declare module 'stripe' {
*/
bacs_debit_payments?: Settings.BacsDebitPayments;

/**
* Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
*/
bank_bca_onboarding?: Settings.BankBcaOnboarding;

/**
* Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
*/
Expand Down Expand Up @@ -3461,6 +3531,18 @@ declare module 'stripe' {
display_name?: string;
}

interface BankBcaOnboarding {
/**
* Bank BCA business account holder name
*/
account_holder_name?: string;

/**
* Bank BCA business account number
*/
business_account_number?: string;
}

interface Branding {
/**
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
Expand Down Expand Up @@ -4756,7 +4838,7 @@ declare module 'stripe' {
): Promise<Stripe.Response<Stripe.ExternalAccount>>;

/**
* Creates a single-use login link for a connected account to access the Express Dashboard.
* Creates a login link for a connected account to access the Express Dashboard.
*
* You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
*/
Expand Down
33 changes: 33 additions & 0 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ declare module 'stripe' {

grabpay?: PaymentMethodDetails.Grabpay;

id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;

ideal?: PaymentMethodDetails.Ideal;

interac_present?: PaymentMethodDetails.InteracPresent;
Expand Down Expand Up @@ -1471,6 +1473,37 @@ declare module 'stripe' {
transaction_id: string | null;
}

interface IdBankTransfer {
/**
* Account number of the bank account to transfer funds to.
*/
account_number: string;

/**
* Bank where the account is located.
*/
bank: IdBankTransfer.Bank;

/**
* Local bank code of the bank.
*/
bank_code?: string;

/**
* Name of the bank associated with the bank account.
*/
bank_name?: string;

/**
* Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
*/
display_name?: string;
}

namespace IdBankTransfer {
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
}

interface Ideal {
/**
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
Expand Down
Loading
Loading