Skip to content

Commit

Permalink
Update generated code (#1931)
Browse files Browse the repository at this point in the history
* Update generated code for v1268

* Update generated code for v1268

* Update generated code for v1268

* Update generated code for v1317

* Update generated code for v1318

* Update generated code for v1319

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <[email protected]>
  • Loading branch information
stripe-openapi[bot] and prathmesh-stripe authored Oct 29, 2024
1 parent 3d2c6d0 commit 659b267
Show file tree
Hide file tree
Showing 47 changed files with 1,535 additions and 108 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1268
v1319
80 changes: 78 additions & 2 deletions account.go

Large diffs are not rendered by default.

40 changes: 30 additions & 10 deletions accountsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ package stripe

// The list of features enabled in the embedded component.
type AccountSessionComponentsAccountManagementFeaturesParams struct {
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// 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 @@ -22,7 +24,9 @@ type AccountSessionComponentsAccountManagementParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsAccountOnboardingFeaturesParams struct {
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// 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 @@ -36,9 +40,11 @@ type AccountSessionComponentsAccountOnboardingParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsBalancesFeaturesParams 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"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
InstantPayouts *bool `form:"instant_payouts"`
Expand Down Expand Up @@ -67,7 +73,9 @@ type AccountSessionComponentsDocumentsParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsNotificationBannerFeaturesParams struct {
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// 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 @@ -121,9 +129,11 @@ type AccountSessionComponentsPaymentsParams struct {

// The list of features enabled in the embedded component.
type AccountSessionComponentsPayoutsFeaturesParams 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"`
// Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
EditPayoutSchedule *bool `form:"edit_payout_schedule"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
InstantPayouts *bool `form:"instant_payouts"`
Expand Down Expand Up @@ -215,7 +225,9 @@ func (p *AccountSessionParams) AddExpand(f string) {
}

type AccountSessionComponentsAccountManagementFeatures struct {
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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 `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"`
}
type AccountSessionComponentsAccountManagement struct {
Expand All @@ -224,7 +236,9 @@ type AccountSessionComponentsAccountManagement struct {
Features *AccountSessionComponentsAccountManagementFeatures `json:"features"`
}
type AccountSessionComponentsAccountOnboardingFeatures struct {
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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 `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"`
}
type AccountSessionComponentsAccountOnboarding struct {
Expand All @@ -233,9 +247,11 @@ type AccountSessionComponentsAccountOnboarding struct {
Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"`
}
type AccountSessionComponentsBalancesFeatures 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 `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"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
InstantPayouts bool `json:"instant_payouts"`
Expand All @@ -254,7 +270,9 @@ type AccountSessionComponentsDocuments struct {
Features *AccountSessionComponentsDocumentsFeatures `json:"features"`
}
type AccountSessionComponentsNotificationBannerFeatures struct {
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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 `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"`
}
type AccountSessionComponentsNotificationBanner struct {
Expand Down Expand Up @@ -293,9 +311,11 @@ type AccountSessionComponentsPayments struct {
Features *AccountSessionComponentsPaymentsFeatures `json:"features"`
}
type AccountSessionComponentsPayoutsFeatures 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 `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"`
// Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
// 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"`
// Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
InstantPayouts bool `json:"instant_payouts"`
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"
)
20 changes: 10 additions & 10 deletions billing_creditbalancesummary.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@

package stripe

// The type of this amount. We currently only support `monetary` credits.
// The type of this amount. We currently only support `monetary` billing credits.
type BillingCreditBalanceSummaryBalanceAvailableBalanceType string

// List of values that BillingCreditBalanceSummaryBalanceAvailableBalanceType can take
const (
BillingCreditBalanceSummaryBalanceAvailableBalanceTypeMonetary BillingCreditBalanceSummaryBalanceAvailableBalanceType = "monetary"
)

// The type of this amount. We currently only support `monetary` credits.
// The type of this amount. We currently only support `monetary` billing credits.
type BillingCreditBalanceSummaryBalanceLedgerBalanceType string

// List of values that BillingCreditBalanceSummaryBalanceLedgerBalanceType can take
const (
BillingCreditBalanceSummaryBalanceLedgerBalanceTypeMonetary BillingCreditBalanceSummaryBalanceLedgerBalanceType = "monetary"
)

// The credit applicability scope for which to fetch balance summary.
// The billing credit applicability scope for which to fetch credit balance summary.
type BillingCreditBalanceSummaryFilterApplicabilityScopeParams struct {
// The price type to which credit grants can apply to. We currently only support `metered` price type.
PriceType *string `form:"price_type"`
}

// The filter criteria for the credit balance summary.
type BillingCreditBalanceSummaryFilterParams struct {
// The credit applicability scope for which to fetch balance summary.
// The billing credit applicability scope for which to fetch credit balance summary.
ApplicabilityScope *BillingCreditBalanceSummaryFilterApplicabilityScopeParams `form:"applicability_scope"`
// The credit grant for which to fetch balance summary.
// The credit grant for which to fetch credit balance summary.
CreditGrant *string `form:"credit_grant"`
// Specify the type of this filter.
Type *string `form:"type"`
Expand Down Expand Up @@ -64,7 +64,7 @@ type BillingCreditBalanceSummaryBalanceAvailableBalanceMonetary struct {
type BillingCreditBalanceSummaryBalanceAvailableBalance struct {
// The monetary amount.
Monetary *BillingCreditBalanceSummaryBalanceAvailableBalanceMonetary `json:"monetary"`
// The type of this amount. We currently only support `monetary` credits.
// The type of this amount. We currently only support `monetary` billing credits.
Type BillingCreditBalanceSummaryBalanceAvailableBalanceType `json:"type"`
}

Expand All @@ -78,20 +78,20 @@ type BillingCreditBalanceSummaryBalanceLedgerBalanceMonetary struct {
type BillingCreditBalanceSummaryBalanceLedgerBalance struct {
// The monetary amount.
Monetary *BillingCreditBalanceSummaryBalanceLedgerBalanceMonetary `json:"monetary"`
// The type of this amount. We currently only support `monetary` credits.
// The type of this amount. We currently only support `monetary` billing credits.
Type BillingCreditBalanceSummaryBalanceLedgerBalanceType `json:"type"`
}

// The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
// The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
type BillingCreditBalanceSummaryBalance struct {
AvailableBalance *BillingCreditBalanceSummaryBalanceAvailableBalance `json:"available_balance"`
LedgerBalance *BillingCreditBalanceSummaryBalanceLedgerBalance `json:"ledger_balance"`
}

// Indicates the credit balance for credits granted to a customer.
// Indicates the billing credit balance for billing credits granted to a customer.
type BillingCreditBalanceSummary struct {
APIResource
// The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
// The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
Balances []*BillingCreditBalanceSummaryBalance `json:"balances"`
// The customer the balance is for.
Customer *Customer `json:"customer"`
Expand Down
Loading

0 comments on commit 659b267

Please sign in to comment.