Skip to content

Commit

Permalink
Merge pull request #2216 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Oct 29, 2024
2 parents 76c7231 + e3af3d1 commit 11d055e
Show file tree
Hide file tree
Showing 40 changed files with 1,673 additions and 22 deletions.
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## 17.3.0 - 2024-10-29
* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code
* Add support for new resource `V2.EventDestinations`
* Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
* Add support for `submit_card` test helper method on resource `Issuing.Card`
* Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account`
* Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
* Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features`
* Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update`
* Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional
* Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
* Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
* Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
* Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
* Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
* Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
* Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
* Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
* Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location`
* Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
* Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence`
* Add support for `enhanced_eligibility_types` on `Dispute`
* Add support for `enhanced_eligibility` on `Dispute.evidence_details`
* Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type`
* Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request`
* Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams`
* Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]`
* Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
* Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
* Add support for `amazon_pay` on `PaymentMethodDomain`
* Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails`
* Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate`
* Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
* Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type`
* Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
* Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
* Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version`

## 17.3.0-beta.1 - 2024-10-18
* [#2206](https://github.com/stripe/stripe-node/pull/2206) Update generated code for beta
* Add support for `alma_payments`, `gopay_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, `qris_payments`, `samsung_pay_payments`, `shopeepay_payments`, `treasury_evolve`, `treasury_fifth_third`, and `treasury_goldman_sachs` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
Expand All @@ -25,6 +63,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
Loading

0 comments on commit 11d055e

Please sign in to comment.