Skip to content

Commit

Permalink
Update generated code for v1409
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 13, 2024
1 parent 8580d89 commit 6e1ce3d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 86 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1402
v1409
20 changes: 10 additions & 10 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

// The list of features enabled in the embedded component.
type AccountSessionComponentsAccountManagementFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection *bool `form:"external_account_collection"`
Expand All @@ -24,7 +24,7 @@ type AccountSessionComponentsAccountManagementParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsAccountOnboardingFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection *bool `form:"external_account_collection"`
Expand All @@ -40,7 +40,7 @@ type AccountSessionComponentsAccountOnboardingParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsBalancesFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
Expand Down Expand Up @@ -73,7 +73,7 @@ type AccountSessionComponentsDocumentsParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsNotificationBannerFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection *bool `form:"external_account_collection"`
Expand Down Expand Up @@ -129,7 +129,7 @@ type AccountSessionComponentsPaymentsParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsPayoutsFeaturesParams struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
Expand Down Expand Up @@ -225,7 +225,7 @@ func (p *AccountSessionParams) AddExpand(f string) {
}

type AccountSessionComponentsAccountManagementFeatures struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection bool `json:"external_account_collection"`
Expand All @@ -236,7 +236,7 @@ type AccountSessionComponentsAccountManagement struct {
Features *AccountSessionComponentsAccountManagementFeatures `json:"features"`
}
type AccountSessionComponentsAccountOnboardingFeatures struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection bool `json:"external_account_collection"`
Expand All @@ -247,7 +247,7 @@ type AccountSessionComponentsAccountOnboarding struct {
Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"`
}
type AccountSessionComponentsBalancesFeatures struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule bool `json:"edit_payout_schedule"`
Expand All @@ -270,7 +270,7 @@ type AccountSessionComponentsDocuments struct {
Features *AccountSessionComponentsDocumentsFeatures `json:"features"`
}
type AccountSessionComponentsNotificationBannerFeatures struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow platforms to control bank account collection for their connected accounts. 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. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
ExternalAccountCollection bool `json:"external_account_collection"`
Expand Down Expand Up @@ -311,7 +311,7 @@ type AccountSessionComponentsPayments struct {
Features *AccountSessionComponentsPaymentsFeatures `json:"features"`
}
type AccountSessionComponentsPayoutsFeatures struct {
// Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
// Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule bool `json:"edit_payout_schedule"`
Expand Down
2 changes: 1 addition & 1 deletion api_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
package stripe

const (
apiVersion string = "2024-12-18.acacia"
apiVersion string = "2024-11-20.acacia"
)
11 changes: 0 additions & 11 deletions card.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@ const (
CardFundingUnknown CardFunding = "unknown"
)

// Status of a card based on the card issuer.
type CardRegulatedStatus string

// List of values that CardRegulatedStatus can take
const (
CardRegulatedStatusRegulated CardRegulatedStatus = "regulated"
CardRegulatedStatusUnregulated CardRegulatedStatus = "unregulated"
)

// If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
type CardTokenizationMethod string

Expand Down Expand Up @@ -378,8 +369,6 @@ type Card struct {
Networks *CardNetworks `json:"networks"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// Status of a card based on the card issuer.
RegulatedStatus CardRegulatedStatus `json:"regulated_status"`
// For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
Status string `json:"status"`
// If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
Expand Down
15 changes: 1 addition & 14 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,6 @@ const (
ChargePaymentMethodDetailsCardOvercaptureStatusUnavailable ChargePaymentMethodDetailsCardOvercaptureStatus = "unavailable"
)

// Status of a card based on the card issuer.
type ChargePaymentMethodDetailsCardRegulatedStatus string

// List of values that ChargePaymentMethodDetailsCardRegulatedStatus can take
const (
ChargePaymentMethodDetailsCardRegulatedStatusRegulated ChargePaymentMethodDetailsCardRegulatedStatus = "regulated"
ChargePaymentMethodDetailsCardRegulatedStatusUnregulated ChargePaymentMethodDetailsCardRegulatedStatus = "unregulated"
)

// For authenticated transactions: how the customer was authenticated by
// the issuing bank.
type ChargePaymentMethodDetailsCardThreeDSecureAuthenticationFlow string
Expand Down Expand Up @@ -926,11 +917,7 @@ type ChargePaymentMethodDetailsCard struct {
Network ChargePaymentMethodDetailsCardNetwork `json:"network"`
// If this card has network token credentials, this contains the details of the network token credentials.
NetworkToken *ChargePaymentMethodDetailsCardNetworkToken `json:"network_token"`
// This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
NetworkTransactionID string `json:"network_transaction_id"`
Overcapture *ChargePaymentMethodDetailsCardOvercapture `json:"overcapture"`
// Status of a card based on the card issuer.
RegulatedStatus ChargePaymentMethodDetailsCardRegulatedStatus `json:"regulated_status"`
Overcapture *ChargePaymentMethodDetailsCardOvercapture `json:"overcapture"`
// Populated if this transaction used 3D Secure authentication.
ThreeDSecure *ChargePaymentMethodDetailsCardThreeDSecure `json:"three_d_secure"`
// If this Card is part of a card wallet, this contains the details of the card wallet.
Expand Down
11 changes: 0 additions & 11 deletions confirmationtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ const (
ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletTypeUnknown ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType = "unknown"
)

// Status of a card based on the card issuer.
type ConfirmationTokenPaymentMethodPreviewCardRegulatedStatus string

// List of values that ConfirmationTokenPaymentMethodPreviewCardRegulatedStatus can take
const (
ConfirmationTokenPaymentMethodPreviewCardRegulatedStatusRegulated ConfirmationTokenPaymentMethodPreviewCardRegulatedStatus = "regulated"
ConfirmationTokenPaymentMethodPreviewCardRegulatedStatusUnregulated ConfirmationTokenPaymentMethodPreviewCardRegulatedStatus = "unregulated"
)

// The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
type ConfirmationTokenPaymentMethodPreviewCardWalletType string

Expand Down Expand Up @@ -730,8 +721,6 @@ type ConfirmationTokenPaymentMethodPreviewCard struct {
Last4 string `json:"last4"`
// Contains information about card networks that can be used to process the payment.
Networks *ConfirmationTokenPaymentMethodPreviewCardNetworks `json:"networks"`
// Status of a card based on the card issuer.
RegulatedStatus ConfirmationTokenPaymentMethodPreviewCardRegulatedStatus `json:"regulated_status"`
// Contains details on how this Card may be used for 3D Secure authentication.
ThreeDSecureUsage *ConfirmationTokenPaymentMethodPreviewCardThreeDSecureUsage `json:"three_d_secure_usage"`
// If this Card is part of a card wallet, this contains the details of the card wallet.
Expand Down
Loading

0 comments on commit 6e1ce3d

Please sign in to comment.