From 7797a65413064816b53d737ea5ff36ceaa666f4b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:13:45 +0000 Subject: [PATCH 01/15] Update generated code for v1334 --- OPENAPI_VERSION | 2 +- issuing_authorization.go | 43 +++++++++++++++++++++ testhelpers/issuing/authorization/client.go | 16 ++++++++ testhelpersissuing_authorization.go | 14 +++++++ 4 files changed, 74 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9cb5323fb..732dc4c753 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1333 \ No newline at end of file +v1334 \ No newline at end of file diff --git a/issuing_authorization.go b/issuing_authorization.go index 9d273ad854..4c9bdd3c55 100644 --- a/issuing_authorization.go +++ b/issuing_authorization.go @@ -40,6 +40,35 @@ const ( IssuingAuthorizationFleetServiceTypeSelfService IssuingAuthorizationFleetServiceType = "self_service" ) +// The method by which the fraud challenge was delivered to the cardholder. +type IssuingAuthorizationFraudChallengeChannel string + +// List of values that IssuingAuthorizationFraudChallengeChannel can take +const ( + IssuingAuthorizationFraudChallengeChannelSms IssuingAuthorizationFraudChallengeChannel = "sms" +) + +// The status of the fraud challenge. +type IssuingAuthorizationFraudChallengeStatus string + +// List of values that IssuingAuthorizationFraudChallengeStatus can take +const ( + IssuingAuthorizationFraudChallengeStatusExpired IssuingAuthorizationFraudChallengeStatus = "expired" + IssuingAuthorizationFraudChallengeStatusPending IssuingAuthorizationFraudChallengeStatus = "pending" + IssuingAuthorizationFraudChallengeStatusRejected IssuingAuthorizationFraudChallengeStatus = "rejected" + IssuingAuthorizationFraudChallengeStatusUndeliverable IssuingAuthorizationFraudChallengeStatus = "undeliverable" + IssuingAuthorizationFraudChallengeStatusVerified IssuingAuthorizationFraudChallengeStatus = "verified" +) + +// If the challenge is not deliverable, the reason why. +type IssuingAuthorizationFraudChallengeUndeliverableReason string + +// List of values that IssuingAuthorizationFraudChallengeUndeliverableReason can take +const ( + IssuingAuthorizationFraudChallengeUndeliverableReasonNoPhoneNumber IssuingAuthorizationFraudChallengeUndeliverableReason = "no_phone_number" + IssuingAuthorizationFraudChallengeUndeliverableReasonUnsupportedPhoneNumber IssuingAuthorizationFraudChallengeUndeliverableReason = "unsupported_phone_number" +) + // The type of fuel that was purchased. type IssuingAuthorizationFuelType string @@ -315,6 +344,16 @@ type IssuingAuthorizationFleet struct { ServiceType IssuingAuthorizationFleetServiceType `json:"service_type"` } +// Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. +type IssuingAuthorizationFraudChallenge struct { + // The method by which the fraud challenge was delivered to the cardholder. + Channel IssuingAuthorizationFraudChallengeChannel `json:"channel"` + // The status of the fraud challenge. + Status IssuingAuthorizationFraudChallengeStatus `json:"status"` + // If the challenge is not deliverable, the reason why. + UndeliverableReason IssuingAuthorizationFraudChallengeUndeliverableReason `json:"undeliverable_reason"` +} + // Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. type IssuingAuthorizationFuel struct { // [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. @@ -474,6 +513,8 @@ type IssuingAuthorization struct { Currency Currency `json:"currency"` // Fleet-specific information for authorizations using Fleet cards. Fleet *IssuingAuthorizationFleet `json:"fleet"` + // Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. + FraudChallenges []*IssuingAuthorizationFraudChallenge `json:"fraud_challenges"` // Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. Fuel *IssuingAuthorizationFuel `json:"fuel"` // Unique identifier for the object. @@ -504,6 +545,8 @@ type IssuingAuthorization struct { // [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts). Treasury *IssuingAuthorizationTreasury `json:"treasury"` VerificationData *IssuingAuthorizationVerificationData `json:"verification_data"` + // Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. + VerifiedByFraudChallenge bool `json:"verified_by_fraud_challenge"` // The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized. Wallet IssuingAuthorizationWallet `json:"wallet"` } diff --git a/testhelpers/issuing/authorization/client.go b/testhelpers/issuing/authorization/client.go index 3aa469040c..8cb41bfa73 100644 --- a/testhelpers/issuing/authorization/client.go +++ b/testhelpers/issuing/authorization/client.go @@ -101,6 +101,22 @@ func (c Client) Increment(id string, params *stripe.TestHelpersIssuingAuthorizat return authorization, err } +// Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. +func Respond(id string, params *stripe.TestHelpersIssuingAuthorizationRespondParams) (*stripe.IssuingAuthorization, error) { + return getC().Respond(id, params) +} + +// Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. +func (c Client) Respond(id string, params *stripe.TestHelpersIssuingAuthorizationRespondParams) (*stripe.IssuingAuthorization, error) { + path := stripe.FormatURLPath( + "/v1/test_helpers/issuing/authorizations/%s/fraud_challenges/respond", + id, + ) + authorization := &stripe.IssuingAuthorization{} + err := c.B.Call(http.MethodPost, path, c.Key, params, authorization) + return authorization, err +} + // Reverse a test-mode Authorization. func Reverse(id string, params *stripe.TestHelpersIssuingAuthorizationReverseParams) (*stripe.IssuingAuthorization, error) { return getC().Reverse(id, params) diff --git a/testhelpersissuing_authorization.go b/testhelpersissuing_authorization.go index 5a44a429dc..e746046a50 100644 --- a/testhelpersissuing_authorization.go +++ b/testhelpersissuing_authorization.go @@ -432,6 +432,20 @@ func (p *TestHelpersIssuingAuthorizationFinalizeAmountParams) AddExpand(f string p.Expand = append(p.Expand, &f) } +// Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. +type TestHelpersIssuingAuthorizationRespondParams struct { + Params `form:"*"` + // Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). + Confirmed *bool `form:"confirmed"` + // Specifies which fields in the response should be expanded. + Expand []*string `form:"expand"` +} + +// AddExpand appends a new field to expand. +func (p *TestHelpersIssuingAuthorizationRespondParams) AddExpand(f string) { + p.Expand = append(p.Expand, &f) +} + // Increment a test-mode Authorization. type TestHelpersIssuingAuthorizationIncrementParams struct { Params `form:"*"` From 6a29c471c7297a8e0444475d8c2b5135151264c1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:22:03 +0000 Subject: [PATCH 02/15] Update generated code for v1335 --- OPENAPI_VERSION | 2 +- file.go | 1 + filelink.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 732dc4c753..c7db7027d6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1334 \ No newline at end of file +v1335 \ No newline at end of file diff --git a/file.go b/file.go index 1f7f73289c..3aa1e7f359 100644 --- a/file.go +++ b/file.go @@ -29,6 +29,7 @@ const ( FilePurposeDisputeEvidence FilePurpose = "dispute_evidence" FilePurposeDocumentProviderIdentityDocument FilePurpose = "document_provider_identity_document" FilePurposeFinanceReportRun FilePurpose = "finance_report_run" + FilePurposeFinancialAccountStatement FilePurpose = "financial_account_statement" FilePurposeIdentityDocument FilePurpose = "identity_document" FilePurposeIdentityDocumentDownloadable FilePurpose = "identity_document_downloadable" FilePurposeIssuingRegulatoryReporting FilePurpose = "issuing_regulatory_reporting" diff --git a/filelink.go b/filelink.go index 1bc091f951..4c5ae8608d 100644 --- a/filelink.go +++ b/filelink.go @@ -36,7 +36,7 @@ type FileLinkParams struct { // A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately. ExpiresAt *int64 `form:"expires_at"` ExpiresAtNow *bool `form:"-"` // See custom AppendTo - // The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. + // The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. File *string `form:"file"` // 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata map[string]string `form:"metadata"` From 2b87f7bd12c8e7f622e46470b9bc25cb53b2164d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:35:58 +0000 Subject: [PATCH 03/15] Update generated code for v1337 --- OPENAPI_VERSION | 2 +- checkout_session.go | 9 +++++---- paymentlink.go | 9 +++++---- payout.go | 10 ++++++++++ 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c7db7027d6..813163e518 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1335 \ No newline at end of file +v1337 \ No newline at end of file diff --git a/checkout_session.go b/checkout_session.go index 58d30969e4..74fc190137 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -1178,10 +1178,11 @@ type CheckoutSessionSubmitType string // List of values that CheckoutSessionSubmitType can take const ( - CheckoutSessionSubmitTypeAuto CheckoutSessionSubmitType = "auto" - CheckoutSessionSubmitTypeBook CheckoutSessionSubmitType = "book" - CheckoutSessionSubmitTypeDonate CheckoutSessionSubmitType = "donate" - CheckoutSessionSubmitTypePay CheckoutSessionSubmitType = "pay" + CheckoutSessionSubmitTypeAuto CheckoutSessionSubmitType = "auto" + CheckoutSessionSubmitTypeBook CheckoutSessionSubmitType = "book" + CheckoutSessionSubmitTypeDonate CheckoutSessionSubmitType = "donate" + CheckoutSessionSubmitTypePay CheckoutSessionSubmitType = "pay" + CheckoutSessionSubmitTypeSubscribe CheckoutSessionSubmitType = "subscribe" ) // Indicates whether a tax ID is required on the payment page diff --git a/paymentlink.go b/paymentlink.go index c5f5c3fddd..d04c85fa08 100644 --- a/paymentlink.go +++ b/paymentlink.go @@ -180,10 +180,11 @@ type PaymentLinkSubmitType string // List of values that PaymentLinkSubmitType can take const ( - PaymentLinkSubmitTypeAuto PaymentLinkSubmitType = "auto" - PaymentLinkSubmitTypeBook PaymentLinkSubmitType = "book" - PaymentLinkSubmitTypeDonate PaymentLinkSubmitType = "donate" - PaymentLinkSubmitTypePay PaymentLinkSubmitType = "pay" + PaymentLinkSubmitTypeAuto PaymentLinkSubmitType = "auto" + PaymentLinkSubmitTypeBook PaymentLinkSubmitType = "book" + PaymentLinkSubmitTypeDonate PaymentLinkSubmitType = "donate" + PaymentLinkSubmitTypePay PaymentLinkSubmitType = "pay" + PaymentLinkSubmitTypeSubscribe PaymentLinkSubmitType = "subscribe" ) // Type of the account referenced. diff --git a/payout.go b/payout.go index 94b2d19f07..c7a63bcd55 100644 --- a/payout.go +++ b/payout.go @@ -178,6 +178,14 @@ func (p *PayoutReverseParams) AddMetadata(key string, value string) { p.Metadata[key] = value } +// A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar. +type PayoutTraceID struct { + // Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`. + Status string `json:"status"` + // The trace ID value if `trace_id.status` is `supported`, otherwise `nil`. + Value string `json:"value"` +} + // A `Payout` object is created when you receive funds from Stripe, or when you // initiate a payout to either a bank account or debit card of a [connected // Stripe account](https://stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts, @@ -236,6 +244,8 @@ type Payout struct { StatementDescriptor string `json:"statement_descriptor"` // Current status of the payout: `paid`, `pending`, `in_transit`, `canceled` or `failed`. A payout is `pending` until it's submitted to the bank, when it becomes `in_transit`. The status changes to `paid` if the transaction succeeds, or to `failed` or `canceled` (within 5 business days). Some payouts that fail might initially show as `paid`, then change to `failed`. Status PayoutStatus `json:"status"` + // A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar. + TraceID *PayoutTraceID `json:"trace_id"` // Can be `bank_account` or `card`. Type PayoutType `json:"type"` } From 89cfe04f0fef3d8bdc78e5e65650c92350ea597a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:07:19 +0000 Subject: [PATCH 04/15] Update generated code for v1339 --- OPENAPI_VERSION | 2 +- invoice.go | 16 ++++++++-------- quoteline.go | 4 ++-- quotepreviewinvoice.go | 4 ++-- quotepreviewsubscriptionschedule.go | 4 ++-- refund.go | 4 ++++ subscription.go | 12 ++++++------ subscription/client.go | 4 ++-- subscriptionschedule.go | 8 ++++---- 9 files changed, 31 insertions(+), 27 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 813163e518..e299bd6079 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1337 \ No newline at end of file +v1339 \ No newline at end of file diff --git a/invoice.go b/invoice.go index 90448d166f..35a69e87e6 100644 --- a/invoice.go +++ b/invoice.go @@ -1396,7 +1396,7 @@ func (p *InvoiceUpcomingScheduleDetailsPhaseItemParams) AddMetadata(key string, p.Metadata[key] = value } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type InvoiceUpcomingScheduleDetailsPhasePauseCollectionParams struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior *string `form:"behavior"` @@ -1461,7 +1461,7 @@ type InvoiceUpcomingScheduleDetailsPhaseParams struct { Metadata map[string]string `form:"metadata"` // The account on behalf of which to charge, for each of the associated subscription's invoices. OnBehalfOf *string `form:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *InvoiceUpcomingScheduleDetailsPhasePauseCollectionParams `form:"pause_collection"` // 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`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase. ProrationBehavior *string `form:"proration_behavior"` @@ -2518,7 +2518,7 @@ func (p *InvoiceUpcomingLinesScheduleDetailsPhaseItemParams) AddMetadata(key str p.Metadata[key] = value } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionParams struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior *string `form:"behavior"` @@ -2583,7 +2583,7 @@ type InvoiceUpcomingLinesScheduleDetailsPhaseParams struct { Metadata map[string]string `form:"metadata"` // The account on behalf of which to charge, for each of the associated subscription's invoices. OnBehalfOf *string `form:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionParams `form:"pause_collection"` // 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`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase. ProrationBehavior *string `form:"proration_behavior"` @@ -4246,7 +4246,7 @@ func (p *InvoiceCreatePreviewScheduleDetailsPhaseItemParams) AddMetadata(key str p.Metadata[key] = value } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type InvoiceCreatePreviewScheduleDetailsPhasePauseCollectionParams struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior *string `form:"behavior"` @@ -4311,7 +4311,7 @@ type InvoiceCreatePreviewScheduleDetailsPhaseParams struct { Metadata map[string]string `form:"metadata"` // The account on behalf of which to charge, for each of the associated subscription's invoices. OnBehalfOf *string `form:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *InvoiceCreatePreviewScheduleDetailsPhasePauseCollectionParams `form:"pause_collection"` // 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`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase. ProrationBehavior *string `form:"proration_behavior"` @@ -4830,7 +4830,7 @@ type InvoiceStatusTransitions struct { VoidedAt int64 `json:"voided_at"` } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type InvoiceSubscriptionDetailsPauseCollection struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior InvoiceSubscriptionDetailsPauseCollectionBehavior `json:"behavior"` @@ -4843,7 +4843,7 @@ type InvoiceSubscriptionDetails struct { // Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. // *Note: This attribute is populated only for invoices created on or after June 29, 2023.* Metadata map[string]string `json:"metadata"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *InvoiceSubscriptionDetailsPauseCollection `json:"pause_collection"` } diff --git a/quoteline.go b/quoteline.go index 24dda38e7b..6acb4482b0 100644 --- a/quoteline.go +++ b/quoteline.go @@ -420,7 +420,7 @@ type QuoteLineEndsAt struct { Type QuoteLineEndsAtType `json:"type"` } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type QuoteLineSetPauseCollectionSet struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior QuoteLineSetPauseCollectionSetBehavior `json:"behavior"` @@ -428,7 +428,7 @@ type QuoteLineSetPauseCollectionSet struct { // Details to modify the pause_collection behavior of the subscription schedule. type QuoteLineSetPauseCollection struct { - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). Set *QuoteLineSetPauseCollectionSet `json:"set"` // Defines the type of the pause_collection behavior for the quote line. Type QuoteLineSetPauseCollectionType `json:"type"` diff --git a/quotepreviewinvoice.go b/quotepreviewinvoice.go index 216dc19ba4..4029bcf186 100644 --- a/quotepreviewinvoice.go +++ b/quotepreviewinvoice.go @@ -661,7 +661,7 @@ type QuotePreviewInvoiceStatusTransitions struct { VoidedAt int64 `json:"voided_at"` } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type QuotePreviewInvoiceSubscriptionDetailsPauseCollection struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior QuotePreviewInvoiceSubscriptionDetailsPauseCollectionBehavior `json:"behavior"` @@ -674,7 +674,7 @@ type QuotePreviewInvoiceSubscriptionDetails struct { // Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. // *Note: This attribute is populated only for invoices created on or after June 29, 2023.* Metadata map[string]string `json:"metadata"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *QuotePreviewInvoiceSubscriptionDetailsPauseCollection `json:"pause_collection"` } diff --git a/quotepreviewsubscriptionschedule.go b/quotepreviewsubscriptionschedule.go index d3c898ece9..9a7b10e4dc 100644 --- a/quotepreviewsubscriptionschedule.go +++ b/quotepreviewsubscriptionschedule.go @@ -464,7 +464,7 @@ type QuotePreviewSubscriptionSchedulePhaseItem struct { Trial *QuotePreviewSubscriptionSchedulePhaseItemTrial `json:"trial"` } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type QuotePreviewSubscriptionSchedulePhasePauseCollection struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior QuotePreviewSubscriptionSchedulePhasePauseCollectionBehavior `json:"behavior"` @@ -525,7 +525,7 @@ type QuotePreviewSubscriptionSchedulePhase struct { Metadata map[string]string `json:"metadata"` // The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details. OnBehalfOf *Account `json:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *QuotePreviewSubscriptionSchedulePhasePauseCollection `json:"pause_collection"` // If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`. ProrationBehavior QuotePreviewSubscriptionSchedulePhaseProrationBehavior `json:"proration_behavior"` diff --git a/refund.go b/refund.go index de5e67db7b..d00346ad1a 100644 --- a/refund.go +++ b/refund.go @@ -146,6 +146,8 @@ type RefundDestinationDetailsAlma struct{} type RefundDestinationDetailsAmazonPay struct{} type RefundDestinationDetailsAuBankTransfer struct{} type RefundDestinationDetailsBLIK struct { + // For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. + NetworkDeclineCode string `json:"network_decline_code"` // The reference assigned to the refund. Reference string `json:"reference"` // Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -221,6 +223,8 @@ type RefundDestinationDetailsPix struct{} type RefundDestinationDetailsRevolut struct{} type RefundDestinationDetailsSofort struct{} type RefundDestinationDetailsSwish struct { + // For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. + NetworkDeclineCode string `json:"network_decline_code"` // The reference assigned to the refund. Reference string `json:"reference"` // Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. diff --git a/subscription.go b/subscription.go index bcf2e19eef..809e737133 100644 --- a/subscription.go +++ b/subscription.go @@ -267,7 +267,7 @@ const ( // // A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. // -// A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. +// A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. // // If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). // @@ -383,7 +383,7 @@ type SubscriptionParams struct { OffSession *bool `form:"off_session"` // The account on behalf of which to charge, for each of the subscription's invoices. OnBehalfOf *string `form:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *SubscriptionPauseCollectionParams `form:"pause_collection"` // Only applies to subscriptions with `collection_method=charge_automatically`. // @@ -609,7 +609,7 @@ func (p *SubscriptionItemsParams) AddMetadata(key string, value string) { p.Metadata[key] = value } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type SubscriptionPauseCollectionParams struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior *string `form:"behavior"` @@ -953,7 +953,7 @@ type SubscriptionLastPriceMigrationError struct { Type SubscriptionLastPriceMigrationErrorType `json:"type"` } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type SubscriptionPauseCollection struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior SubscriptionPauseCollectionBehavior `json:"behavior"` @@ -1197,7 +1197,7 @@ type Subscription struct { Object string `json:"object"` // The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details. OnBehalfOf *Account `json:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *SubscriptionPauseCollection `json:"pause_collection"` // Payment settings passed on to invoices created by the subscription. PaymentSettings *SubscriptionPaymentSettings `json:"payment_settings"` @@ -1219,7 +1219,7 @@ type Subscription struct { // // A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. // - // A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. + // A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. // // If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). // diff --git a/subscription/client.go b/subscription/client.go index 6c3a4cc9ce..74c665d43c 100644 --- a/subscription/client.go +++ b/subscription/client.go @@ -75,7 +75,7 @@ func (c Client) Get(id string, params *stripe.SubscriptionParams) (*stripe.Subsc // The subscription moves from free to paid. // A trial starts or ends. // -// In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). +// In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). // // If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). // @@ -98,7 +98,7 @@ func Update(id string, params *stripe.SubscriptionParams) (*stripe.Subscription, // The subscription moves from free to paid. // A trial starts or ends. // -// In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). +// In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). // // If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). // diff --git a/subscriptionschedule.go b/subscriptionschedule.go index 1967fa8a4e..91bc83db21 100644 --- a/subscriptionschedule.go +++ b/subscriptionschedule.go @@ -419,7 +419,7 @@ func (p *SubscriptionSchedulePhaseItemParams) AddMetadata(key string, value stri p.Metadata[key] = value } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type SubscriptionSchedulePhasePauseCollectionParams struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior *string `form:"behavior"` @@ -476,7 +476,7 @@ type SubscriptionSchedulePhaseParams struct { Metadata map[string]string `form:"metadata"` // The account on behalf of which to charge, for each of the associated subscription's invoices. OnBehalfOf *string `form:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *SubscriptionSchedulePhasePauseCollectionParams `form:"pause_collection"` // 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`. This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase. It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase. ProrationBehavior *string `form:"proration_behavior"` @@ -1171,7 +1171,7 @@ type SubscriptionSchedulePhaseItem struct { Trial *SubscriptionSchedulePhaseItemTrial `json:"trial"` } -// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). +// If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). type SubscriptionSchedulePhasePauseCollection struct { // The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. Behavior SubscriptionSchedulePhasePauseCollectionBehavior `json:"behavior"` @@ -1224,7 +1224,7 @@ type SubscriptionSchedulePhase struct { Metadata map[string]string `json:"metadata"` // The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details. OnBehalfOf *Account `json:"on_behalf_of"` - // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). + // If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). PauseCollection *SubscriptionSchedulePhasePauseCollection `json:"pause_collection"` // If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`. ProrationBehavior SubscriptionSchedulePhaseProrationBehavior `json:"proration_behavior"` From a846c7f76d431ed03565a6ea85ad043df1027517 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:46:18 +0000 Subject: [PATCH 05/15] Update generated code for v1340 --- OPENAPI_VERSION | 2 +- issuing_card.go | 2 +- issuing_cardholder.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e299bd6079..5725c0c7b2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1339 \ No newline at end of file +v1340 \ No newline at end of file diff --git a/issuing_card.go b/issuing_card.go index 9c78bedbf7..425afaded7 100644 --- a/issuing_card.go +++ b/issuing_card.go @@ -383,7 +383,7 @@ type IssuingCard struct { CancellationReason IssuingCardCancellationReason `json:"cancellation_reason"` // An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. // - // Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) + // Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) Cardholder *IssuingCardholder `json:"cardholder"` // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` diff --git a/issuing_cardholder.go b/issuing_cardholder.go index 75e7602097..f1eb5ad674 100644 --- a/issuing_cardholder.go +++ b/issuing_cardholder.go @@ -324,7 +324,7 @@ type IssuingCardholderSpendingControls struct { // An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. // -// Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) +// Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) type IssuingCardholder struct { APIResource Billing *IssuingCardholderBilling `json:"billing"` From f7c65f94d4a076bfb71879d340cecfdd7834eb8b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:53:42 +0000 Subject: [PATCH 06/15] Update generated code for v1343 --- OPENAPI_VERSION | 2 +- person.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5725c0c7b2..6a0dbc07fc 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1340 \ No newline at end of file +v1343 \ No newline at end of file diff --git a/person.go b/person.go index 10f4464af9..b54922487d 100644 --- a/person.go +++ b/person.go @@ -236,6 +236,8 @@ type PersonDocumentsParams struct { // The relationship that this person has with the account's legal entity. type PersonRelationshipParams struct { + // Whether the person is the authorizer of the account's representative. + Authorizer *bool `form:"authorizer"` // Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. Director *bool `form:"director"` // Whether the person has significant responsibility to control, manage, or direct the organization. @@ -270,6 +272,8 @@ type PersonVerificationParams struct { // Filters on the list of people returned based on the person's relationship to the account's company. type PersonListRelationshipParams struct { + // A filter on the list of people returned based on whether these people are authorizers of the account's representative. + Authorizer *bool `form:"authorizer"` // A filter on the list of people returned based on whether these people are directors of the account's company. Director *bool `form:"director"` // A filter on the list of people returned based on whether these people are executives of the account's company. @@ -389,6 +393,8 @@ type PersonFutureRequirements struct { PendingVerification []string `json:"pending_verification"` } type PersonRelationship struct { + // Whether the person is the authorizer of the account's representative. + Authorizer bool `json:"authorizer"` // Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. Director bool `json:"director"` // Whether the person has significant responsibility to control, manage, or direct the organization. From 5096b37e037b6c4d3cf55c7ae77dd50015feb152 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:38:42 +0000 Subject: [PATCH 07/15] Update generated code for v1345 --- OPENAPI_VERSION | 2 +- api_version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6a0dbc07fc..71fc9b78c0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1343 \ No newline at end of file +v1345 \ No newline at end of file diff --git a/api_version.go b/api_version.go index 839b7f9f2f..3eefda0919 100644 --- a/api_version.go +++ b/api_version.go @@ -7,5 +7,5 @@ package stripe const ( - apiVersion string = "2024-10-28.acacia" + apiVersion string = "2024-11-20.acacia" ) From 06f4d63b44d423f939437d21b5cfb9fad237a63e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:19:42 +0000 Subject: [PATCH 08/15] Update generated code for v1346 --- OPENAPI_VERSION | 2 +- fundinginstructions.go | 4 +++- paymentintent.go | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 71fc9b78c0..c09b35a19c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1345 \ No newline at end of file +v1346 \ No newline at end of file diff --git a/fundinginstructions.go b/fundinginstructions.go index 2657b80921..1184864943 100644 --- a/fundinginstructions.go +++ b/fundinginstructions.go @@ -69,8 +69,10 @@ type FundingInstructionsBankTransferFinancialAddressABA struct { // Iban Records contain E.U. bank account details per the SEPA format. type FundingInstructionsBankTransferFinancialAddressIBAN struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account - AccountHolderName string `json:"account_holder_name"` + AccountHolderName string `json:"account_holder_name"` + BankAddress *Address `json:"bank_address"` // The BIC/SWIFT code of the account. BIC string `json:"bic"` // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/paymentintent.go b/paymentintent.go index 15a10e533c..2fb6938d3c 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -4345,8 +4345,10 @@ type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressABA s // Iban Records contain E.U. bank account details per the SEPA format. type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIBAN struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account - AccountHolderName string `json:"account_holder_name"` + AccountHolderName string `json:"account_holder_name"` + BankAddress *Address `json:"bank_address"` // The BIC/SWIFT code of the account. BIC string `json:"bic"` // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). From 9d00be2622f48549b8e84412fb1180843d0da0a6 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:15:10 +0000 Subject: [PATCH 09/15] Update generated code for v1347 --- OPENAPI_VERSION | 2 +- fundinginstructions.go | 4 +--- paymentintent.go | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c09b35a19c..7ab08411da 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1346 \ No newline at end of file +v1347 \ No newline at end of file diff --git a/fundinginstructions.go b/fundinginstructions.go index 1184864943..2657b80921 100644 --- a/fundinginstructions.go +++ b/fundinginstructions.go @@ -69,10 +69,8 @@ type FundingInstructionsBankTransferFinancialAddressABA struct { // Iban Records contain E.U. bank account details per the SEPA format. type FundingInstructionsBankTransferFinancialAddressIBAN struct { - AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account - AccountHolderName string `json:"account_holder_name"` - BankAddress *Address `json:"bank_address"` + AccountHolderName string `json:"account_holder_name"` // The BIC/SWIFT code of the account. BIC string `json:"bic"` // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/paymentintent.go b/paymentintent.go index 2fb6938d3c..15a10e533c 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -4345,10 +4345,8 @@ type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressABA s // Iban Records contain E.U. bank account details per the SEPA format. type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIBAN struct { - AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account - AccountHolderName string `json:"account_holder_name"` - BankAddress *Address `json:"bank_address"` + AccountHolderName string `json:"account_holder_name"` // The BIC/SWIFT code of the account. BIC string `json:"bic"` // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). From 95463319277ac988e01e62eb93cfb442e0760b6c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:54:04 +0000 Subject: [PATCH 10/15] Update generated code for v1348 --- OPENAPI_VERSION | 2 +- fundinginstructions.go | 4 +++- paymentintent.go | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7ab08411da..b9e816d519 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1347 \ No newline at end of file +v1348 \ No newline at end of file diff --git a/fundinginstructions.go b/fundinginstructions.go index 2657b80921..1184864943 100644 --- a/fundinginstructions.go +++ b/fundinginstructions.go @@ -69,8 +69,10 @@ type FundingInstructionsBankTransferFinancialAddressABA struct { // Iban Records contain E.U. bank account details per the SEPA format. type FundingInstructionsBankTransferFinancialAddressIBAN struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account - AccountHolderName string `json:"account_holder_name"` + AccountHolderName string `json:"account_holder_name"` + BankAddress *Address `json:"bank_address"` // The BIC/SWIFT code of the account. BIC string `json:"bic"` // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/paymentintent.go b/paymentintent.go index 15a10e533c..2fb6938d3c 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -4345,8 +4345,10 @@ type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressABA s // Iban Records contain E.U. bank account details per the SEPA format. type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIBAN struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account - AccountHolderName string `json:"account_holder_name"` + AccountHolderName string `json:"account_holder_name"` + BankAddress *Address `json:"bank_address"` // The BIC/SWIFT code of the account. BIC string `json:"bic"` // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). From fc4fcd114272a4f4b6a6e138d4099999129c1ce0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:04:23 +0000 Subject: [PATCH 11/15] Update generated code for v1349 --- OPENAPI_VERSION | 2 +- fundinginstructions.go | 4 +++- paymentintent.go | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9e816d519..a043fa4a4c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1348 \ No newline at end of file +v1349 \ No newline at end of file diff --git a/fundinginstructions.go b/fundinginstructions.go index 1184864943..f617c4d912 100644 --- a/fundinginstructions.go +++ b/fundinginstructions.go @@ -119,12 +119,14 @@ type FundingInstructionsBankTransferFinancialAddressSwift struct { // Zengin Records contain Japan bank account details per the Zengin format. type FundingInstructionsBankTransferFinancialAddressZengin struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The account holder name AccountHolderName string `json:"account_holder_name"` // The account number AccountNumber string `json:"account_number"` // The bank account type. In Japan, this can only be `futsu` or `toza`. - AccountType string `json:"account_type"` + AccountType string `json:"account_type"` + BankAddress *Address `json:"bank_address"` // The bank code of the account BankCode string `json:"bank_code"` // The bank name of the account diff --git a/paymentintent.go b/paymentintent.go index 2fb6938d3c..a900b2b26f 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -4395,12 +4395,14 @@ type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSwift // Zengin Records contain Japan bank account details per the Zengin format. type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressZengin struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The account holder name AccountHolderName string `json:"account_holder_name"` // The account number AccountNumber string `json:"account_number"` // The bank account type. In Japan, this can only be `futsu` or `toza`. - AccountType string `json:"account_type"` + AccountType string `json:"account_type"` + BankAddress *Address `json:"bank_address"` // The bank code of the account BankCode string `json:"bank_code"` // The bank name of the account From a70467797eb0d90fd59f0e990915f686b77ce0c6 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:04:18 +0000 Subject: [PATCH 12/15] Update generated code for v1350 --- OPENAPI_VERSION | 2 +- fundinginstructions.go | 4 ++++ paymentintent.go | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a043fa4a4c..6a2b4d0a85 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1349 \ No newline at end of file +v1350 \ No newline at end of file diff --git a/fundinginstructions.go b/fundinginstructions.go index f617c4d912..321e6bca55 100644 --- a/fundinginstructions.go +++ b/fundinginstructions.go @@ -93,6 +93,10 @@ type FundingInstructionsBankTransferFinancialAddressSortCode struct { // SPEI Records contain Mexico bank account details per the SPEI format. type FundingInstructionsBankTransferFinancialAddressSpei struct { + AccountHolderAddress *Address `json:"account_holder_address"` + // The account holder name + AccountHolderName string `json:"account_holder_name"` + BankAddress *Address `json:"bank_address"` // The three-digit bank code BankCode string `json:"bank_code"` // The short banking institution name diff --git a/paymentintent.go b/paymentintent.go index a900b2b26f..c6d44c956f 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -4369,6 +4369,10 @@ type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortC // SPEI Records contain Mexico bank account details per the SPEI format. type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSpei struct { + AccountHolderAddress *Address `json:"account_holder_address"` + // The account holder name + AccountHolderName string `json:"account_holder_name"` + BankAddress *Address `json:"bank_address"` // The three-digit bank code BankCode string `json:"bank_code"` // The short banking institution name From a7ddf0557181922ab82d7d9b03c8fc84a8dad764 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 00:02:11 +0000 Subject: [PATCH 13/15] Update generated code for v1352 --- OPENAPI_VERSION | 2 +- account.go | 2 +- capability.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6a2b4d0a85..1dec392606 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1350 \ No newline at end of file +v1352 \ No newline at end of file diff --git a/account.go b/account.go index e176d7d03e..be747a2d7b 100644 --- a/account.go +++ b/account.go @@ -1684,7 +1684,7 @@ type AccountFutureRequirementsError struct { type AccountFutureRequirements struct { // Fields that are due and can be satisfied by providing the corresponding alternative fields instead. Alternatives []*AccountFutureRequirementsAlternative `json:"alternatives"` - // Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. + // Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. CurrentDeadline int64 `json:"current_deadline"` // Fields that need to be collected to keep the account enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash. CurrentlyDue []string `json:"currently_due"` diff --git a/capability.go b/capability.go index 690c501f31..d8a9f8d77f 100644 --- a/capability.go +++ b/capability.go @@ -102,7 +102,7 @@ type CapabilityFutureRequirementsError struct { type CapabilityFutureRequirements struct { // Fields that are due and can be satisfied by providing the corresponding alternative fields instead. Alternatives []*CapabilityFutureRequirementsAlternative `json:"alternatives"` - // Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. + // Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. CurrentDeadline int64 `json:"current_deadline"` // Fields that need to be collected to keep the capability enabled. If not collected by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash. CurrentlyDue []string `json:"currently_due"` From 78ea133e3372d1f97d65e06be9cd9eaf41c54960 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:26:07 +0000 Subject: [PATCH 14/15] Update generated code for v1353 --- OPENAPI_VERSION | 2 +- paymentintent.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1dec392606..238faa68a5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1352 \ No newline at end of file +v1353 \ No newline at end of file diff --git a/paymentintent.go b/paymentintent.go index c6d44c956f..524006b0fa 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -2835,7 +2835,7 @@ type PaymentIntentPaymentMethodOptionsSofortParams struct { // If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options. type PaymentIntentPaymentMethodOptionsSwishParams struct { - // The order ID displayed in the Swish app after the payment is authorized. + // A reference for this payment to be displayed in the Swish app. Reference *string `form:"reference"` // Indicates that you intend to make future payments with this PaymentIntent's payment method. // @@ -5416,7 +5416,7 @@ type PaymentIntentPaymentMethodOptionsSofort struct { SetupFutureUsage PaymentIntentPaymentMethodOptionsSofortSetupFutureUsage `json:"setup_future_usage"` } type PaymentIntentPaymentMethodOptionsSwish struct { - // The order ID displayed in the Swish app after the payment is authorized. + // A reference for this payment to be displayed in the Swish app. Reference string `json:"reference"` // Indicates that you intend to make future payments with this PaymentIntent's payment method. // From 80603b0cd7dcab4385880339330c54efe7d12efc Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 18:58:04 +0000 Subject: [PATCH 15/15] Update generated code for v1356 --- OPENAPI_VERSION | 2 +- fundinginstructions.go | 4 +++- paymentintent.go | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 238faa68a5..20cbdd3048 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1353 \ No newline at end of file +v1356 \ No newline at end of file diff --git a/fundinginstructions.go b/fundinginstructions.go index 321e6bca55..5db6766986 100644 --- a/fundinginstructions.go +++ b/fundinginstructions.go @@ -83,10 +83,12 @@ type FundingInstructionsBankTransferFinancialAddressIBAN struct { // Sort Code Records contain U.K. bank account details per the sort code format. type FundingInstructionsBankTransferFinancialAddressSortCode struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account AccountHolderName string `json:"account_holder_name"` // The account number - AccountNumber string `json:"account_number"` + AccountNumber string `json:"account_number"` + BankAddress *Address `json:"bank_address"` // The six-digit sort code SortCode string `json:"sort_code"` } diff --git a/paymentintent.go b/paymentintent.go index 524006b0fa..1956cce410 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -4359,10 +4359,12 @@ type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressIBAN // Sort Code Records contain U.K. bank account details per the sort code format. type PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressSortCode struct { + AccountHolderAddress *Address `json:"account_holder_address"` // The name of the person or business that owns the bank account AccountHolderName string `json:"account_holder_name"` // The account number - AccountNumber string `json:"account_number"` + AccountNumber string `json:"account_number"` + BankAddress *Address `json:"bank_address"` // The six-digit sort code SortCode string `json:"sort_code"` }