Skip to content

Commit

Permalink
Merge upstream and update generated code for v528
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Sep 14, 2023
2 parents 897956a + 54238ea commit 18f55b1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v526
v528
43 changes: 26 additions & 17 deletions issuing_carddesign.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ package stripe

import "encoding/json"

// Whether this card design is used to create cards when one is not specified.
type IssuingCardDesignPreference string

// List of values that IssuingCardDesignPreference can take
const (
IssuingCardDesignPreferenceDefault IssuingCardDesignPreference = "default"
IssuingCardDesignPreferenceNone IssuingCardDesignPreference = "none"
IssuingCardDesignPreferencePlatformDefault IssuingCardDesignPreference = "platform_default"
)

// The reason(s) the card logo was rejected.
type IssuingCardDesignRejectionReasonsCardLogo string

Expand Down Expand Up @@ -58,15 +48,23 @@ const (
IssuingCardDesignStatusReview IssuingCardDesignStatus = "review"
)

// Only return card designs with the given preferences.
type IssuingCardDesignListPreferencesParams struct {
// Only return the card design that is set as the account default. A connected account will use the Connect platform's default if no card design is set as the account default.
AccountDefault *bool `form:"account_default"`
// Only return the card design that is set as the Connect platform's default. This parameter is only applicable to connected accounts.
PlatformDefault *bool `form:"platform_default"`
}

// Returns a list of card design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
type IssuingCardDesignListParams struct {
ListParams `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// Only return card designs with the given lookup keys.
LookupKeys []*string `form:"lookup_keys"`
// Only return card designs with the given preference.
Preference *string `form:"preference"`
// Only return card designs with the given preferences.
Preferences *IssuingCardDesignListPreferencesParams `form:"preferences"`
// Only return card designs with the given status.
Status *string `form:"status"`
}
Expand All @@ -88,6 +86,12 @@ type IssuingCardDesignCarrierTextParams struct {
HeaderTitle *string `form:"header_title"`
}

// Information on whether this card design is used to create cards when one is not specified.
type IssuingCardDesignPreferencesParams struct {
// Whether this card design is used to create cards when one is not specified. A connected account will use the Connect platform's default if no card design is set as the account default.
AccountDefault *bool `form:"account_default"`
}

// Creates a card design object.
type IssuingCardDesignParams struct {
Params `form:"*"`
Expand All @@ -105,8 +109,8 @@ type IssuingCardDesignParams struct {
Metadata map[string]string `form:"metadata"`
// Friendly display name. Providing an empty string will set the field to null.
Name *string `form:"name"`
// Whether this card design is used to create cards when one is not specified.
Preference *string `form:"preference"`
// Information on whether this card design is used to create cards when one is not specified.
Preferences *IssuingCardDesignPreferencesParams `form:"preferences"`
// If set to true, will atomically remove the lookup key from the existing card design, and assign it to this card design.
TransferLookupKey *bool `form:"transfer_lookup_key"`
}
Expand Down Expand Up @@ -136,6 +140,12 @@ type IssuingCardDesignCarrierText struct {
// The header title text of the carrier letter.
HeaderTitle string `json:"header_title"`
}
type IssuingCardDesignPreferences struct {
// Whether this card design is used to create cards when one is not specified. A connected account will use the Connect platform's default if no card design is set as the account default.
AccountDefault bool `json:"account_default"`
// Whether this card design is used to create cards when one is not specified and an account default for this connected account does not exist.
PlatformDefault bool `json:"platform_default"`
}
type IssuingCardDesignRejectionReasons struct {
// The reason(s) the card logo was rejected.
CardLogo []IssuingCardDesignRejectionReasonsCardLogo `json:"card_logo"`
Expand All @@ -161,9 +171,8 @@ type IssuingCardDesign struct {
// Friendly display name.
Name string `json:"name"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// Whether this card design is used to create cards when one is not specified.
Preference IssuingCardDesignPreference `json:"preference"`
Object string `json:"object"`
Preferences *IssuingCardDesignPreferences `json:"preferences"`
RejectionReasons *IssuingCardDesignRejectionReasons `json:"rejection_reasons"`
// Whether this card design can be used to create cards.
Status IssuingCardDesignStatus `json:"status"`
Expand Down

0 comments on commit 18f55b1

Please sign in to comment.