Skip to content

Commit

Permalink
Merge upstream and update generated code for v1320
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 30, 2024
2 parents 3dea0fd + 6c42d32 commit 355400d
Show file tree
Hide file tree
Showing 28 changed files with 552 additions and 59 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Add support for `gopay`, `qris`, and `shopeepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`

## 17.3.0 - 2024-10-29
* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code
* [#2204](https://github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`.
* 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`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1319
v1320
2 changes: 2 additions & 0 deletions src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {FinancingOffers as CapitalFinancingOffers} from './resources/Capital/Fin
import {FinancingSummary as CapitalFinancingSummary} from './resources/Capital/FinancingSummary.js';
import {FinancingTransactions as CapitalFinancingTransactions} from './resources/Capital/FinancingTransactions.js';
import {Forms as TaxForms} from './resources/Tax/Forms.js';
import {FraudLiabilityDebits as IssuingFraudLiabilityDebits} from './resources/Issuing/FraudLiabilityDebits.js';
import {InboundTransfers as TestHelpersTreasuryInboundTransfers} from './resources/TestHelpers/Treasury/InboundTransfers.js';
import {InboundTransfers as TreasuryInboundTransfers} from './resources/Treasury/InboundTransfers.js';
import {Institutions as FinancialConnectionsInstitutions} from './resources/FinancialConnections/Institutions.js';
Expand Down Expand Up @@ -192,6 +193,7 @@ export const Issuing = resourceNamespace('issuing', {
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
DisputeSettlementDetails: IssuingDisputeSettlementDetails,
Disputes: IssuingDisputes,
FraudLiabilityDebits: IssuingFraudLiabilityDebits,
PersonalizationDesigns: IssuingPersonalizationDesigns,
PhysicalBundles: IssuingPhysicalBundles,
Tokens: IssuingTokens,
Expand Down
15 changes: 15 additions & 0 deletions src/resources/Issuing/FraudLiabilityDebits.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const FraudLiabilityDebits = StripeResource.extend({
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/fraud_liability_debits/{fraud_liability_debit}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/fraud_liability_debits',
methodType: 'list',
}),
});
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ declare module 'stripe' {
*/
cardholder_management?: boolean;

/**
* Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts.
*/
disable_stripe_user_authentication?: boolean;

/**
* Whether to allow spend control management features.
*/
Expand Down
42 changes: 38 additions & 4 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,9 @@ declare module 'stripe' {
currently_due: Array<string> | null;

/**
* This is typed as a string for consistency with `requirements.disabled_reason`.
* This is typed as an enum for consistency with `requirements.disabled_reason`.
*/
disabled_reason: string | null;
disabled_reason: FutureRequirements.DisabledReason | null;

/**
* Fields that are `currently_due` and need to be collected again because validation or verification failed.
Expand Down Expand Up @@ -1066,6 +1066,23 @@ declare module 'stripe' {
original_fields_due: Array<string>;
}

type DisabledReason =
| 'action_required.requested_capabilities'
| 'listed'
| 'other'
| 'platform_paused'
| 'rejected.fraud'
| 'rejected.incomplete_verification'
| 'rejected.listed'
| 'rejected.other'
| 'rejected.platform_fraud'
| 'rejected.platform_other'
| 'rejected.platform_terms_of_service'
| 'rejected.terms_of_service'
| 'requirements.past_due'
| 'requirements.pending_verification'
| 'under_review';

interface Error {
/**
* The code for the type of error.
Expand Down Expand Up @@ -1202,9 +1219,9 @@ declare module 'stripe' {
currently_due: Array<string> | null;

/**
* If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`.
* If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
*/
disabled_reason: string | null;
disabled_reason: Requirements.DisabledReason | null;

/**
* Fields that are `currently_due` and need to be collected again because validation or verification failed.
Expand Down Expand Up @@ -1240,6 +1257,23 @@ declare module 'stripe' {
original_fields_due: Array<string>;
}

type DisabledReason =
| 'action_required.requested_capabilities'
| 'listed'
| 'other'
| 'platform_paused'
| 'rejected.fraud'
| 'rejected.incomplete_verification'
| 'rejected.listed'
| 'rejected.other'
| 'rejected.platform_fraud'
| 'rejected.platform_other'
| 'rejected.platform_terms_of_service'
| 'rejected.terms_of_service'
| 'requirements.past_due'
| 'requirements.pending_verification'
| 'under_review';

interface Error {
/**
* The code for the type of error.
Expand Down
2 changes: 1 addition & 1 deletion types/Billing/MeterEventsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period.
* A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
*/
identifier?: string;

Expand Down
4 changes: 4 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,8 @@ declare module 'stripe' {
}

interface BacsDebit {
mandate_options?: BacsDebit.MandateOptions;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand All @@ -1292,6 +1294,8 @@ declare module 'stripe' {
}

namespace BacsDebit {
interface MandateOptions {}

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
}

Expand Down
38 changes: 35 additions & 3 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ declare module 'stripe' {
multibanco?: PaymentMethodOptions.Multibanco;

/**
* contains details about the Kakao Pay payment method options.
* contains details about the Naver Pay payment method options.
*/
naver_pay?: PaymentMethodOptions.NaverPay;

Expand Down Expand Up @@ -1330,6 +1330,11 @@ declare module 'stripe' {
}

interface BacsDebit {
/**
* Additional fields for Mandate creation
*/
mandate_options?: BacsDebit.MandateOptions;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand All @@ -1343,6 +1348,8 @@ declare module 'stripe' {
}

namespace BacsDebit {
interface MandateOptions {}

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
}

Expand Down Expand Up @@ -1582,6 +1589,11 @@ declare module 'stripe' {
}

interface KakaoPay {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down Expand Up @@ -1630,6 +1642,11 @@ declare module 'stripe' {
}

interface KrCard {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down Expand Up @@ -1690,6 +1707,11 @@ declare module 'stripe' {
}

interface NaverPay {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down Expand Up @@ -1742,7 +1764,12 @@ declare module 'stripe' {
tos_shown_and_accepted?: boolean;
}

interface Payco {}
interface Payco {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';
}

interface Paynow {
/**
Expand Down Expand Up @@ -1939,7 +1966,12 @@ declare module 'stripe' {
type SetupFutureUsage = 'none' | 'off_session';
}

interface SamsungPay {}
interface SamsungPay {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';
}

interface SepaDebit {
/**
Expand Down
34 changes: 34 additions & 0 deletions types/EventTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ declare module 'stripe' {
| InvoicePaidEvent
| InvoicePaymentOverpaidEvent
| InvoicePaymentActionRequiredEvent
| InvoicePaymentAttemptRequiredEvent
| InvoicePaymentFailedEvent
| InvoicePaymentSucceededEvent
| InvoiceSentEvent
Expand All @@ -137,6 +138,7 @@ declare module 'stripe' {
| IssuingDisputeUpdatedEvent
| IssuingDisputeSettlementDetailCreatedEvent
| IssuingDisputeSettlementDetailUpdatedEvent
| IssuingFraudLiabilityDebitCreatedEvent
| IssuingPersonalizationDesignActivatedEvent
| IssuingPersonalizationDesignDeactivatedEvent
| IssuingPersonalizationDesignRejectedEvent
Expand Down Expand Up @@ -2044,6 +2046,22 @@ declare module 'stripe' {
}
}

/**
* Occurs when an invoice requires a payment using a payment method that cannot be processed by Stripe.
*/
interface InvoicePaymentAttemptRequiredEvent extends EventBase {
type: 'invoice.payment_attempt_required';
data: InvoicePaymentAttemptRequiredEvent.Data;
}

namespace InvoicePaymentAttemptRequiredEvent {
interface Data extends Stripe.Event.Data {
object: Stripe.Invoice;

previous_attributes?: Partial<Stripe.Invoice>;
}
}

/**
* Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method.
*/
Expand Down Expand Up @@ -2428,6 +2446,22 @@ declare module 'stripe' {
}
}

/**
* Occurs whenever funds are deducted from your account for fraud dispute loss liability.
*/
interface IssuingFraudLiabilityDebitCreatedEvent extends EventBase {
type: 'issuing_fraud_liability_debit.created';
data: IssuingFraudLiabilityDebitCreatedEvent.Data;
}

namespace IssuingFraudLiabilityDebitCreatedEvent {
interface Data extends Stripe.Event.Data {
object: Stripe.Issuing.FraudLiabilityDebit;

previous_attributes?: Partial<Stripe.Issuing.FraudLiabilityDebit>;
}
}

/**
* Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
*/
Expand Down
2 changes: 2 additions & 0 deletions types/Events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ declare module 'stripe' {
| 'invoice.paid'
| 'invoice.payment.overpaid'
| 'invoice.payment_action_required'
| 'invoice.payment_attempt_required'
| 'invoice.payment_failed'
| 'invoice.payment_succeeded'
| 'invoice.sent'
Expand All @@ -221,6 +222,7 @@ declare module 'stripe' {
| 'issuing_dispute.updated'
| 'issuing_dispute_settlement_detail.created'
| 'issuing_dispute_settlement_detail.updated'
| 'issuing_fraud_liability_debit.created'
| 'issuing_personalization_design.activated'
| 'issuing_personalization_design.deactivated'
| 'issuing_personalization_design.rejected'
Expand Down
2 changes: 1 addition & 1 deletion types/Identity/VerificationReports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ declare module 'stripe' {
type: VerificationReport.Type;

/**
* The configuration token of a Verification Flow from the dashboard.
* The configuration token of a verification flow from the dashboard.
*/
verification_flow?: string;

Expand Down
2 changes: 1 addition & 1 deletion types/Identity/VerificationSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ declare module 'stripe' {
url: string | null;

/**
* The configuration token of a Verification Flow from the dashboard.
* The configuration token of a verification flow from the dashboard.
*/
verification_flow?: string;

Expand Down
2 changes: 1 addition & 1 deletion types/Identity/VerificationSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ declare module 'stripe' {
type?: VerificationSessionCreateParams.Type;

/**
* The ID of a Verification Flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows.
* The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows.
*/
verification_flow?: string;
}
Expand Down
Loading

0 comments on commit 355400d

Please sign in to comment.