Skip to content

Commit

Permalink
Update generated code for v1319
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 25, 2024
1 parent 453392e commit ce004e8
Show file tree
Hide file tree
Showing 22 changed files with 668 additions and 36 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1314
v1319
37 changes: 37 additions & 0 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,18 @@ type AccountCapabilitiesGrabpayPaymentsParams struct {
Requested *bool `form:"requested"`
}

// The id_bank_transfer_payments capability.
type AccountCapabilitiesIDBankTransferPaymentsParams struct {
// 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 *bool `form:"requested"`
}

// The id_bank_transfer_payments_bca capability.
type AccountCapabilitiesIDBankTransferPaymentsBcaParams struct {
// 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 *bool `form:"requested"`
}

// The ideal_payments capability.
type AccountCapabilitiesIDEALPaymentsParams struct {
// 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 @@ -741,6 +753,10 @@ type AccountCapabilitiesParams struct {
GopayPayments *AccountCapabilitiesGopayPaymentsParams `form:"gopay_payments"`
// The grabpay_payments capability.
GrabpayPayments *AccountCapabilitiesGrabpayPaymentsParams `form:"grabpay_payments"`
// The id_bank_transfer_payments capability.
IDBankTransferPayments *AccountCapabilitiesIDBankTransferPaymentsParams `form:"id_bank_transfer_payments"`
// The id_bank_transfer_payments_bca capability.
IDBankTransferPaymentsBca *AccountCapabilitiesIDBankTransferPaymentsBcaParams `form:"id_bank_transfer_payments_bca"`
// The ideal_payments capability.
IDEALPayments *AccountCapabilitiesIDEALPaymentsParams `form:"ideal_payments"`
// The india_international_payments capability.
Expand Down Expand Up @@ -1059,6 +1075,14 @@ type AccountSettingsBACSDebitPaymentsParams struct {
DisplayName *string `form:"display_name"`
}

// Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
type AccountSettingsBankBcaOnboardingParams struct {
// Bank BCA business account holder name
AccountHolderName *string `form:"account_holder_name"`
// Bank BCA business account number
BusinessAccountNumber *string `form:"business_account_number"`
}

// Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
type AccountSettingsBrandingParams struct {
// (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 @@ -1187,6 +1211,8 @@ type AccountSettingsTreasuryParams struct {
type AccountSettingsParams struct {
// Settings specific to Bacs Direct Debit payments.
BACSDebitPayments *AccountSettingsBACSDebitPaymentsParams `form:"bacs_debit_payments"`
// Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
BankBcaOnboarding *AccountSettingsBankBcaOnboardingParams `form:"bank_bca_onboarding"`
// Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
Branding *AccountSettingsBrandingParams `form:"branding"`
// Settings specific to the account's use of the Capital product.
Expand Down Expand Up @@ -1384,6 +1410,10 @@ type AccountCapabilities struct {
GopayPayments AccountCapabilityStatus `json:"gopay_payments"`
// The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
GrabpayPayments AccountCapabilityStatus `json:"grabpay_payments"`
// The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
IDBankTransferPayments AccountCapabilityStatus `json:"id_bank_transfer_payments"`
// The status of Bank BCA onboarding of the account.
IDBankTransferPaymentsBca AccountCapabilityStatus `json:"id_bank_transfer_payments_bca"`
// The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
IDEALPayments AccountCapabilityStatus `json:"ideal_payments"`
// The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
Expand Down Expand Up @@ -1700,6 +1730,12 @@ type AccountSettingsBACSDebitPayments struct {
// The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
ServiceUserNumber string `json:"service_user_number"`
}
type AccountSettingsBankBcaOnboarding struct {
// Bank BCA business account holder name.
AccountHolderName string `json:"account_holder_name"`
// Bank BCA business account number.
BusinessAccountNumber string `json:"business_account_number"`
}
type AccountSettingsBranding struct {
// (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.
Icon *File `json:"icon"`
Expand Down Expand Up @@ -1804,6 +1840,7 @@ type AccountSettingsTreasury struct {
// Options for customizing how the account functions within Stripe.
type AccountSettings struct {
BACSDebitPayments *AccountSettingsBACSDebitPayments `json:"bacs_debit_payments"`
BankBcaOnboarding *AccountSettingsBankBcaOnboarding `json:"bank_bca_onboarding"`
Branding *AccountSettingsBranding `json:"branding"`
Capital *AccountSettingsCapital `json:"capital"`
CardIssuing *AccountSettingsCardIssuing `json:"card_issuing"`
Expand Down
18 changes: 12 additions & 6 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ type AccountSessionComponentsDocumentsParams struct {
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsDocumentsFeaturesParams `form:"features"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsFinancialAccountFeaturesParams struct {
// 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. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise.
DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"`
Expand All @@ -158,7 +160,8 @@ type AccountSessionComponentsFinancialAccountFeaturesParams struct {
// Configuration for the financial account component.
type AccountSessionComponentsFinancialAccountParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsFinancialAccountFeaturesParams `form:"features"`
}
type AccountSessionComponentsFinancialAccountTransactionsFeaturesParams struct {
Expand Down Expand Up @@ -303,13 +306,15 @@ type AccountSessionComponentsPayoutsListParams struct {
// The list of features enabled in the embedded component.
Features *AccountSessionComponentsPayoutsListFeaturesParams `form:"features"`
}
type AccountSessionComponentsRecipientsFeaturesParams struct {
// Whether to allow sending money.
SendMoney *bool `form:"send_money"`
}

// The list of features enabled in the embedded component.
type AccountSessionComponentsRecipientsFeaturesParams struct{}
// Configuration for the recipients component.
type AccountSessionComponentsRecipientsParams struct {
// Whether the embedded component is enabled.
Enabled *bool `form:"enabled"`
// The list of features enabled in the embedded component.
Enabled *bool `form:"enabled"`
Features *AccountSessionComponentsRecipientsFeaturesParams `form:"features"`
}

Expand Down Expand Up @@ -388,7 +393,8 @@ type AccountSessionComponentsParams struct {
Payouts *AccountSessionComponentsPayoutsParams `form:"payouts"`
// Configuration for the payouts list embedded component.
PayoutsList *AccountSessionComponentsPayoutsListParams `form:"payouts_list"`
Recipients *AccountSessionComponentsRecipientsParams `form:"recipients"`
// Configuration for the recipients component.
Recipients *AccountSessionComponentsRecipientsParams `form:"recipients"`
// Configuration for the reporting chart embedded component.
ReportingChart *AccountSessionComponentsReportingChartParams `form:"reporting_chart"`
// Configuration for the tax registrations embedded component.
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-09-30.acacia"
apiVersion string = "2024-10-28.acacia"
)
25 changes: 25 additions & 0 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,18 @@ const (
ChargePaymentMethodDetailsCardPresentWalletTypeUnknown ChargePaymentMethodDetailsCardPresentWalletType = "unknown"
)

// Bank where the account is located.
type ChargePaymentMethodDetailsIDBankTransferBank string

// List of values that ChargePaymentMethodDetailsIDBankTransferBank can take
const (
ChargePaymentMethodDetailsIDBankTransferBankBca ChargePaymentMethodDetailsIDBankTransferBank = "bca"
ChargePaymentMethodDetailsIDBankTransferBankBni ChargePaymentMethodDetailsIDBankTransferBank = "bni"
ChargePaymentMethodDetailsIDBankTransferBankBri ChargePaymentMethodDetailsIDBankTransferBank = "bri"
ChargePaymentMethodDetailsIDBankTransferBankCimb ChargePaymentMethodDetailsIDBankTransferBank = "cimb"
ChargePaymentMethodDetailsIDBankTransferBankPermata ChargePaymentMethodDetailsIDBankTransferBank = "permata"
)

// The Klarna payment method used for this transaction.
// Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
type ChargePaymentMethodDetailsKlarnaPaymentMethodCategory string
Expand Down Expand Up @@ -1657,6 +1669,18 @@ type ChargePaymentMethodDetailsGrabpay struct {
// Unique transaction id generated by GrabPay
TransactionID string `json:"transaction_id"`
}
type ChargePaymentMethodDetailsIDBankTransfer struct {
// Account number of the bank account to transfer funds to.
AccountNumber string `json:"account_number"`
// Bank where the account is located.
Bank ChargePaymentMethodDetailsIDBankTransferBank `json:"bank"`
// Local bank code of the bank.
BankCode string `json:"bank_code"`
// Name of the bank associated with the bank account.
BankName string `json:"bank_name"`
// Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
DisplayName string `json:"display_name"`
}
type ChargePaymentMethodDetailsIDEAL struct {
// 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`.
Bank string `json:"bank"`
Expand Down Expand Up @@ -2003,6 +2027,7 @@ type ChargePaymentMethodDetails struct {
Giropay *ChargePaymentMethodDetailsGiropay `json:"giropay"`
Gopay *ChargePaymentMethodDetailsGopay `json:"gopay"`
Grabpay *ChargePaymentMethodDetailsGrabpay `json:"grabpay"`
IDBankTransfer *ChargePaymentMethodDetailsIDBankTransfer `json:"id_bank_transfer"`
IDEAL *ChargePaymentMethodDetailsIDEAL `json:"ideal"`
InteracPresent *ChargePaymentMethodDetailsInteracPresent `json:"interac_present"`
KakaoPay *ChargePaymentMethodDetailsKakaoPay `json:"kakao_pay"`
Expand Down
Loading

0 comments on commit ce004e8

Please sign in to comment.