diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 280e945f82..e0801e4ff5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1020 \ No newline at end of file +v1039 \ No newline at end of file diff --git a/applicationfee.go b/applicationfee.go index 6468098523..5067c53512 100644 --- a/applicationfee.go +++ b/applicationfee.go @@ -8,6 +8,15 @@ package stripe import "encoding/json" +// Type of object that created the application fee, either `charge` or `payout`. +type ApplicationFeeFeeSourceType string + +// List of values that ApplicationFeeFeeSourceType can take +const ( + ApplicationFeeFeeSourceTypeCharge ApplicationFeeFeeSourceType = "charge" + ApplicationFeeFeeSourceTypePayout ApplicationFeeFeeSourceType = "payout" +) + // Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first. type ApplicationFeeListParams struct { ListParams `form:"*"` @@ -38,6 +47,15 @@ func (p *ApplicationFeeParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } +// Polymorphic source of the application fee. Includes the ID of the object the application fee was created from. +type ApplicationFeeFeeSource struct { + // Charge ID that created this application fee. + Charge string `json:"charge"` + // Payout ID that created this application fee. + Payout string `json:"payout"` + // Type of object that created the application fee, either `charge` or `payout`. + Type ApplicationFeeFeeSourceType `json:"type"` +} type ApplicationFee struct { APIResource // ID of the Stripe account this fee was taken from. @@ -56,6 +74,8 @@ type ApplicationFee struct { Created int64 `json:"created"` // Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Currency Currency `json:"currency"` + // Polymorphic source of the application fee. Includes the ID of the object the application fee was created from. + FeeSource *ApplicationFeeFeeSource `json:"fee_source"` // Unique identifier for the object. ID string `json:"id"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/balance.go b/balance.go index 83e60852fc..c16b5ed27d 100644 --- a/balance.go +++ b/balance.go @@ -35,8 +35,27 @@ type Amount struct { // Balance amount. Amount int64 `json:"amount"` // Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - Currency Currency `json:"currency"` - SourceTypes map[BalanceSourceType]int64 `json:"source_types"` + Currency Currency `json:"currency"` + // Breakdown of balance by destination. + NetAvailable []*BalanceInstantAvailableNetAvailable `json:"net_available"` + SourceTypes map[BalanceSourceType]int64 `json:"source_types"` +} +type BalanceInstantAvailableNetAvailableSourceTypes struct { + // Amount for bank account. + BankAccount int64 `json:"bank_account"` + // Amount for card. + Card int64 `json:"card"` + // Amount for FPX. + FPX int64 `json:"fpx"` +} + +// Breakdown of balance by destination. +type BalanceInstantAvailableNetAvailable struct { + // Net balance amount, subtracting fees from platform-set pricing. + Amount int64 `json:"amount"` + // ID of the external account for this net balance (not expandable). + Destination string `json:"destination"` + SourceTypes *BalanceInstantAvailableNetAvailableSourceTypes `json:"source_types"` } type BalanceIssuing struct { // Funds that are available for use. diff --git a/charge.go b/charge.go index bc6f2afce0..dda79dfc69 100644 --- a/charge.go +++ b/charge.go @@ -892,6 +892,8 @@ type ChargePaymentMethodDetailsCardPresent struct { Offline *ChargePaymentMethodDetailsCardPresentOffline `json:"offline"` // Defines whether the authorized amount can be over-captured or not OvercaptureSupported bool `json:"overcapture_supported"` + // EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + PreferredLocales []string `json:"preferred_locales"` // How card details were read in this transaction. ReadMethod string `json:"read_method"` // A collection of fields required to be displayed on receipts. Only required for EMV transactions. diff --git a/checkout_session.go b/checkout_session.go index 18f5e993c4..36c17197ab 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -736,7 +736,7 @@ const ( CheckoutSessionRedirectOnCompletionNever CheckoutSessionRedirectOnCompletion = "never" ) -// Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. +// Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout. type CheckoutSessionSavedPaymentMethodOptionsAllowRedisplayFilter string // List of values that CheckoutSessionSavedPaymentMethodOptionsAllowRedisplayFilter can take @@ -1729,7 +1729,7 @@ type CheckoutSessionPhoneNumberCollectionParams struct { // Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. type CheckoutSessionSavedPaymentMethodOptionsParams struct { - // Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + // Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout. AllowRedisplayFilters []*string `form:"allow_redisplay_filters"` // Enable customers to choose if they wish to save their payment method for future use. Disabled by default. PaymentMethodSave *string `form:"payment_method_save"` @@ -2688,7 +2688,7 @@ type CheckoutSessionPhoneNumberCollection struct { // Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. type CheckoutSessionSavedPaymentMethodOptions struct { - // Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + // Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout. AllowRedisplayFilters []CheckoutSessionSavedPaymentMethodOptionsAllowRedisplayFilter `json:"allow_redisplay_filters"` // Enable customers to choose if they wish to save their payment method for future use. Disabled by default. PaymentMethodSave CheckoutSessionSavedPaymentMethodOptionsPaymentMethodSave `json:"payment_method_save"` diff --git a/confirmationtoken.go b/confirmationtoken.go index b8825bc10e..0bab761bea 100644 --- a/confirmationtoken.go +++ b/confirmationtoken.go @@ -535,6 +535,8 @@ type ConfirmationTokenPaymentMethodPreviewCardPresent struct { Last4 string `json:"last4"` // Contains information about card networks that can be used to process the payment. Networks *ConfirmationTokenPaymentMethodPreviewCardPresentNetworks `json:"networks"` + // EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + PreferredLocales []string `json:"preferred_locales"` // How card details were read in this transaction. ReadMethod ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod `json:"read_method"` } diff --git a/dispute.go b/dispute.go index 790098e6f5..59f95875b1 100644 --- a/dispute.go +++ b/dispute.go @@ -14,6 +14,7 @@ type DisputePaymentMethodDetailsType string // List of values that DisputePaymentMethodDetailsType can take const ( DisputePaymentMethodDetailsTypeCard DisputePaymentMethodDetailsType = "card" + DisputePaymentMethodDetailsTypeKlarna DisputePaymentMethodDetailsType = "klarna" DisputePaymentMethodDetailsTypePaypal DisputePaymentMethodDetailsType = "paypal" ) @@ -226,6 +227,10 @@ type DisputePaymentMethodDetailsCard struct { // The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network. NetworkReasonCode string `json:"network_reason_code"` } +type DisputePaymentMethodDetailsKlarna struct { + // The reason for the dispute as defined by Klarna + ReasonCode string `json:"reason_code"` +} type DisputePaymentMethodDetailsPaypal struct { // The ID of the dispute in PayPal. CaseID string `json:"case_id"` @@ -234,6 +239,7 @@ type DisputePaymentMethodDetailsPaypal struct { } type DisputePaymentMethodDetails struct { Card *DisputePaymentMethodDetailsCard `json:"card"` + Klarna *DisputePaymentMethodDetailsKlarna `json:"klarna"` Paypal *DisputePaymentMethodDetailsPaypal `json:"paypal"` // Payment method type. Type DisputePaymentMethodDetailsType `json:"type"` diff --git a/entitlements_feature.go b/entitlements_feature.go index 277cd601aa..709229eabd 100644 --- a/entitlements_feature.go +++ b/entitlements_feature.go @@ -11,8 +11,12 @@ import "encoding/json" // Retrieve a list of features type EntitlementsFeatureListParams struct { ListParams `form:"*"` + // If set, filter results to only include features with the given archive status. + Archived *bool `form:"archived"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` + // If set, filter results to only include features with the given lookup_key. + LookupKey *string `form:"lookup_key"` } // AddExpand appends a new field to expand. diff --git a/invoice.go b/invoice.go index 8e3d98b98e..94c393c06b 100644 --- a/invoice.go +++ b/invoice.go @@ -2828,7 +2828,7 @@ type Invoice struct { Application *Application `json:"application"` // The fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid. ApplicationFeeAmount int64 `json:"application_fee_amount"` - // Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. + // Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained. AttemptCount int64 `json:"attempt_count"` // Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users. Attempted bool `json:"attempted"` diff --git a/issuing_dispute.go b/issuing_dispute.go index 84049a0258..08eebc5be4 100644 --- a/issuing_dispute.go +++ b/issuing_dispute.go @@ -62,11 +62,39 @@ const ( IssuingDisputeEvidenceReasonDuplicate IssuingDisputeEvidenceReason = "duplicate" IssuingDisputeEvidenceReasonFraudulent IssuingDisputeEvidenceReason = "fraudulent" IssuingDisputeEvidenceReasonMerchandiseNotAsDescribed IssuingDisputeEvidenceReason = "merchandise_not_as_described" + IssuingDisputeEvidenceReasonNoValidAuthorization IssuingDisputeEvidenceReason = "no_valid_authorization" IssuingDisputeEvidenceReasonNotReceived IssuingDisputeEvidenceReason = "not_received" IssuingDisputeEvidenceReasonOther IssuingDisputeEvidenceReason = "other" IssuingDisputeEvidenceReasonServiceNotAsDescribed IssuingDisputeEvidenceReason = "service_not_as_described" ) +// The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values. +type IssuingDisputeLossReason string + +// List of values that IssuingDisputeLossReason can take +const ( + IssuingDisputeLossReasonCardholderAuthenticationIssuerLiability IssuingDisputeLossReason = "cardholder_authentication_issuer_liability" + IssuingDisputeLossReasonEci5TokenTransactionWithTavv IssuingDisputeLossReason = "eci5_token_transaction_with_tavv" + IssuingDisputeLossReasonExcessDisputesInTimeframe IssuingDisputeLossReason = "excess_disputes_in_timeframe" + IssuingDisputeLossReasonHasNotMetTheMinimumDisputeAmountRequirements IssuingDisputeLossReason = "has_not_met_the_minimum_dispute_amount_requirements" + IssuingDisputeLossReasonInvalidDuplicateDispute IssuingDisputeLossReason = "invalid_duplicate_dispute" + IssuingDisputeLossReasonInvalidIncorrectAmountDispute IssuingDisputeLossReason = "invalid_incorrect_amount_dispute" + IssuingDisputeLossReasonInvalidNoAuthorization IssuingDisputeLossReason = "invalid_no_authorization" + IssuingDisputeLossReasonInvalidUseOfDisputes IssuingDisputeLossReason = "invalid_use_of_disputes" + IssuingDisputeLossReasonMerchandiseDeliveredOrShipped IssuingDisputeLossReason = "merchandise_delivered_or_shipped" + IssuingDisputeLossReasonMerchandiseOrServiceAsDescribed IssuingDisputeLossReason = "merchandise_or_service_as_described" + IssuingDisputeLossReasonNotCancelled IssuingDisputeLossReason = "not_cancelled" + IssuingDisputeLossReasonOther IssuingDisputeLossReason = "other" + IssuingDisputeLossReasonRefundIssued IssuingDisputeLossReason = "refund_issued" + IssuingDisputeLossReasonSubmittedBeyondAllowableTimeLimit IssuingDisputeLossReason = "submitted_beyond_allowable_time_limit" + IssuingDisputeLossReasonTransaction3dsRequired IssuingDisputeLossReason = "transaction_3ds_required" + IssuingDisputeLossReasonTransactionApprovedAfterPriorFraudDispute IssuingDisputeLossReason = "transaction_approved_after_prior_fraud_dispute" + IssuingDisputeLossReasonTransactionAuthorized IssuingDisputeLossReason = "transaction_authorized" + IssuingDisputeLossReasonTransactionElectronicallyRead IssuingDisputeLossReason = "transaction_electronically_read" + IssuingDisputeLossReasonTransactionQualifiesForVisaEasyPaymentService IssuingDisputeLossReason = "transaction_qualifies_for_visa_easy_payment_service" + IssuingDisputeLossReasonTransactionUnattended IssuingDisputeLossReason = "transaction_unattended" +) + // Current status of the dispute. type IssuingDisputeStatus string @@ -163,6 +191,14 @@ type IssuingDisputeEvidenceMerchandiseNotAsDescribedParams struct { ReturnStatus *string `form:"return_status"` } +// Evidence provided when `reason` is 'no_valid_authorization'. +type IssuingDisputeEvidenceNoValidAuthorizationParams struct { + // (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + AdditionalDocumentation *string `form:"additional_documentation"` + // Explanation of why the cardholder is disputing this transaction. + Explanation *string `form:"explanation"` +} + // Evidence provided when `reason` is 'not_received'. type IssuingDisputeEvidenceNotReceivedParams struct { // (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. @@ -215,6 +251,8 @@ type IssuingDisputeEvidenceParams struct { MerchandiseNotAsDescribed *IssuingDisputeEvidenceMerchandiseNotAsDescribedParams `form:"merchandise_not_as_described"` // Evidence provided when `reason` is 'not_received'. NotReceived *IssuingDisputeEvidenceNotReceivedParams `form:"not_received"` + // Evidence provided when `reason` is 'no_valid_authorization'. + NoValidAuthorization *IssuingDisputeEvidenceNoValidAuthorizationParams `form:"no_valid_authorization"` // Evidence provided when `reason` is 'other'. Other *IssuingDisputeEvidenceOtherParams `form:"other"` // The reason for filing the dispute. The evidence should be submitted in the field of the same name. @@ -339,6 +377,12 @@ type IssuingDisputeEvidenceMerchandiseNotAsDescribed struct { // Result of cardholder's attempt to return the product. ReturnStatus IssuingDisputeEvidenceMerchandiseNotAsDescribedReturnStatus `json:"return_status"` } +type IssuingDisputeEvidenceNoValidAuthorization struct { + // (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + AdditionalDocumentation *File `json:"additional_documentation"` + // Explanation of why the cardholder is disputing this transaction. + Explanation string `json:"explanation"` +} type IssuingDisputeEvidenceNotReceived struct { // (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. AdditionalDocumentation *File `json:"additional_documentation"` @@ -379,6 +423,7 @@ type IssuingDisputeEvidence struct { Fraudulent *IssuingDisputeEvidenceFraudulent `json:"fraudulent"` MerchandiseNotAsDescribed *IssuingDisputeEvidenceMerchandiseNotAsDescribed `json:"merchandise_not_as_described"` NotReceived *IssuingDisputeEvidenceNotReceived `json:"not_received"` + NoValidAuthorization *IssuingDisputeEvidenceNoValidAuthorization `json:"no_valid_authorization"` Other *IssuingDisputeEvidenceOther `json:"other"` // The reason for filing the dispute. Its value will match the field containing the evidence. Reason IssuingDisputeEvidenceReason `json:"reason"` @@ -411,6 +456,8 @@ type IssuingDispute struct { ID string `json:"id"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. Livemode bool `json:"livemode"` + // The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values. + LossReason IssuingDisputeLossReason `json:"loss_reason"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Metadata map[string]string `json:"metadata"` // String representing the object's type. Objects of the same type share the same value. diff --git a/paymentintent.go b/paymentintent.go index 2b498e9516..3e716f09cb 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -429,6 +429,15 @@ const ( PaymentIntentPaymentMethodOptionsCardSetupFutureUsageOnSession PaymentIntentPaymentMethodOptionsCardSetupFutureUsage = "on_session" ) +// Requested routing priority +type PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriority string + +// List of values that PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriority can take +const ( + PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriorityDomestic PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriority = "domestic" + PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriorityInternational PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriority = "international" +) + // Controls when the funds will be captured from the customer's account. type PaymentIntentPaymentMethodOptionsCashAppCaptureMethod string @@ -1391,12 +1400,20 @@ type PaymentIntentPaymentMethodOptionsCardParams struct { ThreeDSecure *PaymentIntentPaymentMethodOptionsCardThreeDSecureParams `form:"three_d_secure"` } +// Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. +type PaymentIntentPaymentMethodOptionsCardPresentRoutingParams struct { + // Routing requested priority + RequestedPriority *string `form:"requested_priority"` +} + // If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. type PaymentIntentPaymentMethodOptionsCardPresentParams struct { // Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) RequestExtendedAuthorization *bool `form:"request_extended_authorization"` // Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. RequestIncrementalAuthorizationSupport *bool `form:"request_incremental_authorization_support"` + // Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes. + Routing *PaymentIntentPaymentMethodOptionsCardPresentRoutingParams `form:"routing"` } // If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options. @@ -2820,11 +2837,16 @@ type PaymentIntentPaymentMethodOptionsCard struct { // Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. StatementDescriptorSuffixKanji string `json:"statement_descriptor_suffix_kanji"` } +type PaymentIntentPaymentMethodOptionsCardPresentRouting struct { + // Requested routing priority + RequestedPriority PaymentIntentPaymentMethodOptionsCardPresentRoutingRequestedPriority `json:"requested_priority"` +} type PaymentIntentPaymentMethodOptionsCardPresent struct { // Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity) RequestExtendedAuthorization bool `json:"request_extended_authorization"` // Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support. - RequestIncrementalAuthorizationSupport bool `json:"request_incremental_authorization_support"` + RequestIncrementalAuthorizationSupport bool `json:"request_incremental_authorization_support"` + Routing *PaymentIntentPaymentMethodOptionsCardPresentRouting `json:"routing"` } type PaymentIntentPaymentMethodOptionsCashApp struct { // Controls when the funds will be captured from the customer's account. diff --git a/paymentmethod.go b/paymentmethod.go index 0efe42d3a4..c495d466ed 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -806,6 +806,8 @@ type PaymentMethodCardPresent struct { Last4 string `json:"last4"` // Contains information about card networks that can be used to process the payment. Networks *PaymentMethodCardPresentNetworks `json:"networks"` + // EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + PreferredLocales []string `json:"preferred_locales"` // How card details were read in this transaction. ReadMethod PaymentMethodCardPresentReadMethod `json:"read_method"` } diff --git a/payout.go b/payout.go index 62d141f2de..94b2d19f07 100644 --- a/payout.go +++ b/payout.go @@ -190,6 +190,10 @@ type Payout struct { APIResource // The amount (in cents (or local equivalent)) that transfers to your bank account or debit card. Amount int64 `json:"amount"` + // The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. + ApplicationFee *ApplicationFee `json:"application_fee"` + // The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. + ApplicationFeeAmount int64 `json:"application_fee_amount"` // Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays. ArrivalDate int64 `json:"arrival_date"` // Returns `true` if the payout is created by an [automated payout schedule](https://stripe.com/docs/payouts#payout-schedule) and `false` if it's [requested manually](https://stripe.com/docs/payouts#manual-payouts). diff --git a/price.go b/price.go index 46373ff269..a4f282737e 100644 --- a/price.go +++ b/price.go @@ -121,7 +121,7 @@ type PriceListParams struct { Currency *string `form:"currency"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // Only return the price with these lookup_keys, if any exist. + // Only return the price with these lookup_keys, if any exist. You can specify up to 10 lookup_keys. LookupKeys []*string `form:"lookup_keys"` // Only return prices for the given product. Product *string `form:"product"` diff --git a/product.go b/product.go index 9c254152ef..46709ad5a1 100644 --- a/product.go +++ b/product.go @@ -50,7 +50,7 @@ type ProductParams struct { // An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. // // This may be up to 22 characters. The statement description may not include `<`, `>`, `\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - // It must contain at least one letter. May only be set if `type=service`. + // It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments. StatementDescriptor *string `form:"statement_descriptor"` // A [tax code](https://stripe.com/docs/tax/tax-categories) ID. TaxCode *string `form:"tax_code"` @@ -264,7 +264,7 @@ type Product struct { PackageDimensions *ProductPackageDimensions `json:"package_dimensions"` // Whether this product is shipped (i.e., physical goods). Shippable bool `json:"shippable"` - // Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. + // Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments. StatementDescriptor string `json:"statement_descriptor"` // A [tax code](https://stripe.com/docs/tax/tax-categories) ID. TaxCode *TaxCode `json:"tax_code"` diff --git a/terminal_configuration.go b/terminal_configuration.go index 4ecbd863d3..6227ada6f2 100644 --- a/terminal_configuration.go +++ b/terminal_configuration.go @@ -17,6 +17,8 @@ type TerminalConfigurationParams struct { Name *string `form:"name"` // Configurations for collecting transactions offline. Offline *TerminalConfigurationOfflineParams `form:"offline"` + // An object containing device type specific settings for Stripe S700 readers + StripeS700 *TerminalConfigurationStripeS700Params `form:"stripe_s700"` // Tipping configurations for readers supporting on-reader tips Tipping *TerminalConfigurationTippingParams `form:"tipping"` // An object containing device type specific settings for Verifone P400 readers @@ -40,6 +42,12 @@ type TerminalConfigurationOfflineParams struct { Enabled *bool `form:"enabled"` } +// An object containing device type specific settings for Stripe S700 readers +type TerminalConfigurationStripeS700Params struct { + // A File ID representing an image you would like displayed on the reader. + Splashscreen *string `form:"splashscreen"` +} + // Tipping configuration for AUD type TerminalConfigurationTippingAUDParams struct { // Fixed amounts displayed when collecting a tip @@ -240,6 +248,10 @@ type TerminalConfigurationOffline struct { // Determines whether to allow transactions to be collected while reader is offline. Defaults to false. Enabled bool `json:"enabled"` } +type TerminalConfigurationStripeS700 struct { + // A File ID representing an image you would like displayed on the reader. + Splashscreen *File `json:"splashscreen"` +} type TerminalConfigurationTippingAUD struct { // Fixed amounts displayed when collecting a tip FixedAmounts []int64 `json:"fixed_amounts"` @@ -389,6 +401,7 @@ type TerminalConfiguration struct { // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` Offline *TerminalConfigurationOffline `json:"offline"` + StripeS700 *TerminalConfigurationStripeS700 `json:"stripe_s700"` Tipping *TerminalConfigurationTipping `json:"tipping"` VerifoneP400 *TerminalConfigurationVerifoneP400 `json:"verifone_p400"` }