Skip to content

Commit

Permalink
Codegen for openapi v148
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed May 25, 2022
1 parent fe84ab8 commit d7a6210
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v147
v148
20 changes: 20 additions & 0 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ const (
AccountCapabilitiesKonbiniPaymentsPending AccountCapabilitiesKonbiniPayments = "pending"
)

// The status of the link_payments capability of the account, or whether the account can directly process Link charges.
type AccountCapabilitiesLinkPayments string

// List of values that AccountCapabilitiesLinkPayments can take
const (
AccountCapabilitiesLinkPaymentsActive AccountCapabilitiesLinkPayments = "active"
AccountCapabilitiesLinkPaymentsInactive AccountCapabilitiesLinkPayments = "inactive"
AccountCapabilitiesLinkPaymentsPending AccountCapabilitiesLinkPayments = "pending"
)

// The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
type AccountCapabilitiesPayNowPayments string

Expand Down Expand Up @@ -397,6 +407,12 @@ type AccountCapabilitiesLegacyPaymentsParams struct {
Requested *bool `form:"requested"`
}

// The link_payments capability.
type AccountCapabilitiesLinkPaymentsParams 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 oxxo_payments capability.
type AccountCapabilitiesOXXOPaymentsParams 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 @@ -497,6 +513,8 @@ type AccountCapabilitiesParams struct {
KonbiniPayments *AccountCapabilitiesKonbiniPaymentsParams `form:"konbini_payments"`
// The legacy_payments capability.
LegacyPayments *AccountCapabilitiesLegacyPaymentsParams `form:"legacy_payments"`
// The link_payments capability.
LinkPayments *AccountCapabilitiesLinkPaymentsParams `form:"link_payments"`
// The oxxo_payments capability.
OXXOPayments *AccountCapabilitiesOXXOPaymentsParams `form:"oxxo_payments"`
// The p24_payments capability.
Expand Down Expand Up @@ -877,6 +895,8 @@ type AccountCapabilities struct {
KonbiniPayments AccountCapabilitiesKonbiniPayments `json:"konbini_payments"`
// The status of the legacy payments capability of the account.
LegacyPayments AccountCapabilityStatus `json:"legacy_payments"`
// The status of the link_payments capability of the account, or whether the account can directly process Link charges.
LinkPayments AccountCapabilitiesLinkPayments `json:"link_payments"`
// The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
OXXOPayments AccountCapabilityStatus `json:"oxxo_payments"`
// The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
Expand Down
4 changes: 2 additions & 2 deletions subschedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ type SubscriptionSchedulePhaseParams struct {
Iterations *int64 `form:"iterations"`
// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
Metadata map[string]string `form:"metadata"`
// If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
// Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase. The default value is `create_prorations`.
ProrationBehavior *string `form:"proration_behavior"`
// The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
StartDate *int64 `form:"start_date"`
Expand Down Expand Up @@ -231,7 +231,7 @@ type SubscriptionScheduleParams struct {
FromSubscription *string `form:"from_subscription"`
// List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
Phases []*SubscriptionSchedulePhaseParams `form:"phases"`
// If the update changes the current phase, indicates if the changes should be prorated. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`.
// If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`.
ProrationBehavior *string `form:"proration_behavior"`
// When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
StartDate *int64 `form:"start_date"`
Expand Down

0 comments on commit d7a6210

Please sign in to comment.