Skip to content

Commit

Permalink
Update generated code for v1188
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 8, 2024
1 parent 4d86d9a commit a864434
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1186
v1188
10 changes: 10 additions & 0 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ const (
ChargePaymentMethodDetailsCardPresentNetworkUnknown ChargePaymentMethodDetailsCardPresentNetwork = "unknown"
)

// The method used to process this payment method offline. Only deferred is allowed.
type ChargePaymentMethodDetailsCardPresentOfflineType string

// List of values that ChargePaymentMethodDetailsCardPresentOfflineType can take
const (
ChargePaymentMethodDetailsCardPresentOfflineTypeDeferred ChargePaymentMethodDetailsCardPresentOfflineType = "deferred"
)

// The type of account being debited or credited
type ChargePaymentMethodDetailsCardPresentReceiptAccountType string

Expand Down Expand Up @@ -1478,6 +1486,8 @@ type ChargePaymentMethodDetailsCard struct {
type ChargePaymentMethodDetailsCardPresentOffline struct {
// Time at which the payment was collected while offline
StoredAt int64 `json:"stored_at"`
// The method used to process this payment method offline. Only deferred is allowed.
Type ChargePaymentMethodDetailsCardPresentOfflineType `json:"type"`
}

// A collection of fields required to be displayed on receipts. Only required for EMV transactions.
Expand Down
20 changes: 20 additions & 0 deletions confirmationtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ const (
ConfirmationTokenPaymentMethodPreviewAllowRedisplayUnspecified ConfirmationTokenPaymentMethodPreviewAllowRedisplay = "unspecified"
)

// The method used to process this payment method offline. Only deferred is allowed.
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType string

// List of values that ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType can take
const (
ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineTypeDeferred ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType = "deferred"
)

// How card details were read in this transaction.
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod string

Expand Down Expand Up @@ -53,6 +61,14 @@ const (
ConfirmationTokenPaymentMethodPreviewCardWalletTypeVisaCheckout ConfirmationTokenPaymentMethodPreviewCardWalletType = "visa_checkout"
)

// The method used to process this payment method offline. Only deferred is allowed.
type ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType string

// List of values that ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType can take
const (
ConfirmationTokenPaymentMethodPreviewCardPresentOfflineTypeDeferred ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType = "deferred"
)

// How card details were read in this transaction.
type ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod string

Expand Down Expand Up @@ -456,6 +472,8 @@ type ConfirmationTokenPaymentMethodPreviewCardChecks struct {
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOffline struct {
// Time at which the payment was collected while offline
StoredAt int64 `json:"stored_at"`
// The method used to process this payment method offline. Only deferred is allowed.
Type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType `json:"type"`
}

// A collection of fields required to be displayed on receipts. Only required for EMV transactions.
Expand Down Expand Up @@ -654,6 +672,8 @@ type ConfirmationTokenPaymentMethodPreviewCardPresentNetworks struct {
type ConfirmationTokenPaymentMethodPreviewCardPresentOffline struct {
// Time at which the payment was collected while offline
StoredAt int64 `json:"stored_at"`
// The method used to process this payment method offline. Only deferred is allowed.
Type ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType `json:"type"`
}
type ConfirmationTokenPaymentMethodPreviewCardPresent struct {
// Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Expand Down
20 changes: 20 additions & 0 deletions paymentmethod.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ const (
PaymentMethodCardChecksCVCCheckUnchecked PaymentMethodCardChecksCVCCheck = "unchecked"
)

// The method used to process this payment method offline. Only deferred is allowed.
type PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType string

// List of values that PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType can take
const (
PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentOfflineTypeDeferred PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType = "deferred"
)

// How card details were read in this transaction.
type PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod string

Expand Down Expand Up @@ -137,6 +145,14 @@ const (
PaymentMethodCardWalletTypeVisaCheckout PaymentMethodCardWalletType = "visa_checkout"
)

// The method used to process this payment method offline. Only deferred is allowed.
type PaymentMethodCardPresentOfflineType string

// List of values that PaymentMethodCardPresentOfflineType can take
const (
PaymentMethodCardPresentOfflineTypeDeferred PaymentMethodCardPresentOfflineType = "deferred"
)

// How card details were read in this transaction.
type PaymentMethodCardPresentReadMethod string

Expand Down Expand Up @@ -753,6 +769,8 @@ type PaymentMethodCardChecks struct {
type PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentOffline struct {
// Time at which the payment was collected while offline
StoredAt int64 `json:"stored_at"`
// The method used to process this payment method offline. Only deferred is allowed.
Type PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType `json:"type"`
}

// A collection of fields required to be displayed on receipts. Only required for EMV transactions.
Expand Down Expand Up @@ -953,6 +971,8 @@ type PaymentMethodCardPresentNetworks struct {
type PaymentMethodCardPresentOffline struct {
// Time at which the payment was collected while offline
StoredAt int64 `json:"stored_at"`
// The method used to process this payment method offline. Only deferred is allowed.
Type PaymentMethodCardPresentOfflineType `json:"type"`
}
type PaymentMethodCardPresent struct {
// Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
Expand Down
10 changes: 10 additions & 0 deletions setupattempt.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ const (
SetupAttemptPaymentMethodDetailsCardWalletTypeLink SetupAttemptPaymentMethodDetailsCardWalletType = "link"
)

// The method used to process this payment method offline. Only deferred is allowed.
type SetupAttemptPaymentMethodDetailsCardPresentOfflineType string

// List of values that SetupAttemptPaymentMethodDetailsCardPresentOfflineType can take
const (
SetupAttemptPaymentMethodDetailsCardPresentOfflineTypeDeferred SetupAttemptPaymentMethodDetailsCardPresentOfflineType = "deferred"
)

// The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
type SetupAttemptPaymentMethodDetailsType string

Expand Down Expand Up @@ -235,6 +243,8 @@ type SetupAttemptPaymentMethodDetailsCard struct {
type SetupAttemptPaymentMethodDetailsCardPresentOffline struct {
// Time at which the payment was collected while offline
StoredAt int64 `json:"stored_at"`
// The method used to process this payment method offline. Only deferred is allowed.
Type SetupAttemptPaymentMethodDetailsCardPresentOfflineType `json:"type"`
}
type SetupAttemptPaymentMethodDetailsCardPresent struct {
// The ID of the Card PaymentMethod which was generated by this SetupAttempt.
Expand Down

0 comments on commit a864434

Please sign in to comment.