Skip to content

Commit

Permalink
Update generated code for v466
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 16, 2023
1 parent 63dc0d9 commit a5c46b2
Show file tree
Hide file tree
Showing 133 changed files with 431 additions and 533 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v458
v466
2 changes: 1 addition & 1 deletion account.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

import (
"encoding/json"
"github.com/stripe/stripe-go/v74/form"
"github.com/stripe/stripe-go/v75/form"

Check failure on line 11 in account.go

View workflow job for this annotation

GitHub Actions / Lint

no required module provides package github.com/stripe/stripe-go/v75/form; to add it:

Check failure on line 11 in account.go

View workflow job for this annotation

GitHub Actions / Test: go v1.19

no required module provides package github.com/stripe/stripe-go/v75/form; to add it:

Check failure on line 11 in account.go

View workflow job for this annotation

GitHub Actions / Test: go v1.18

no required module provides package github.com/stripe/stripe-go/v75/form; to add it:

Check failure on line 11 in account.go

View workflow job for this annotation

GitHub Actions / Test: go v1.17

no required module provides package github.com/stripe/stripe-go/v75/form; to add it:

Check failure on line 11 in account.go

View workflow job for this annotation

GitHub Actions / Test: go v1.15

module github.com/stripe/stripe-go@latest found (v70.15.0+incompatible), but does not contain package github.com/stripe/stripe-go/v75/form
)

// The business type.
Expand Down
4 changes: 2 additions & 2 deletions account/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package account
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"

Check failure on line 13 in account/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.19

no required module provides package github.com/stripe/stripe-go/v75; to add it:

Check failure on line 13 in account/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.18

no required module provides package github.com/stripe/stripe-go/v75; to add it:

Check failure on line 13 in account/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.17

no required module provides package github.com/stripe/stripe-go/v75; to add it:

Check failure on line 13 in account/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.15

module github.com/stripe/stripe-go@latest found (v70.15.0+incompatible), but does not contain package github.com/stripe/stripe-go/v75
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /accounts APIs.
Expand Down
2 changes: 1 addition & 1 deletion accountlink/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package accountlink
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
stripe "github.com/stripe/stripe-go/v75"
)

// Client is used to invoke /account_links APIs.
Expand Down
2 changes: 1 addition & 1 deletion api_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
package stripe

const (
apiVersion string = "2022-11-15"
apiVersion string = "2023-08-16"
)
4 changes: 2 additions & 2 deletions applepaydomain/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package applepaydomain
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /apple_pay/domains APIs.
Expand Down
4 changes: 2 additions & 2 deletions applicationfee/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package applicationfee
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /application_fees APIs.
Expand Down
4 changes: 2 additions & 2 deletions apps/secret/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package secret
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /apps/secrets APIs.
Expand Down
2 changes: 1 addition & 1 deletion balance/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package balance
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
stripe "github.com/stripe/stripe-go/v75"
)

// Client is used to invoke /balance APIs.
Expand Down
10 changes: 3 additions & 7 deletions balancetransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,9 @@ const (
//
// Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
type BalanceTransactionListParams struct {
ListParams `form:"*"`
// This parameter is deprecated and we recommend listing by created and filtering in memory instead.
AvailableOn *int64 `form:"available_on"`
// This parameter is deprecated and we recommend listing by created and filtering in memory instead.
AvailableOnRange *RangeQueryParams `form:"available_on"`
Created *int64 `form:"created"`
CreatedRange *RangeQueryParams `form:"created"`
ListParams `form:"*"`
Created *int64 `form:"created"`
CreatedRange *RangeQueryParams `form:"created"`
// Only return transactions in a certain currency. 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 *string `form:"currency"`
// Specifies which fields in the response should be expanded.
Expand Down
4 changes: 2 additions & 2 deletions balancetransaction/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package balancetransaction
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /balance_transactions APIs.
Expand Down
10 changes: 9 additions & 1 deletion bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

import (
"encoding/json"
"github.com/stripe/stripe-go/v74/form"
"github.com/stripe/stripe-go/v75/form"
"strconv"
)

Expand Down Expand Up @@ -41,10 +41,12 @@ const (
BankAccountFutureRequirementsErrorCodeInvalidStreetAddress BankAccountFutureRequirementsErrorCode = "invalid_street_address"
BankAccountFutureRequirementsErrorCodeInvalidTOSAcceptance BankAccountFutureRequirementsErrorCode = "invalid_tos_acceptance"
BankAccountFutureRequirementsErrorCodeInvalidValueOther BankAccountFutureRequirementsErrorCode = "invalid_value_other"
BankAccountFutureRequirementsErrorCodeVerificationDirectorsMismatch BankAccountFutureRequirementsErrorCode = "verification_directors_mismatch"
BankAccountFutureRequirementsErrorCodeVerificationDocumentAddressMismatch BankAccountFutureRequirementsErrorCode = "verification_document_address_mismatch"
BankAccountFutureRequirementsErrorCodeVerificationDocumentAddressMissing BankAccountFutureRequirementsErrorCode = "verification_document_address_missing"
BankAccountFutureRequirementsErrorCodeVerificationDocumentCorrupt BankAccountFutureRequirementsErrorCode = "verification_document_corrupt"
BankAccountFutureRequirementsErrorCodeVerificationDocumentCountryNotSupported BankAccountFutureRequirementsErrorCode = "verification_document_country_not_supported"
BankAccountFutureRequirementsErrorCodeVerificationDocumentDirectorsMismatch BankAccountFutureRequirementsErrorCode = "verification_document_directors_mismatch"
BankAccountFutureRequirementsErrorCodeVerificationDocumentDOBMismatch BankAccountFutureRequirementsErrorCode = "verification_document_dob_mismatch"
BankAccountFutureRequirementsErrorCodeVerificationDocumentDuplicateType BankAccountFutureRequirementsErrorCode = "verification_document_duplicate_type"
BankAccountFutureRequirementsErrorCodeVerificationDocumentExpired BankAccountFutureRequirementsErrorCode = "verification_document_expired"
Expand All @@ -70,6 +72,7 @@ const (
BankAccountFutureRequirementsErrorCodeVerificationDocumentPhotoMismatch BankAccountFutureRequirementsErrorCode = "verification_document_photo_mismatch"
BankAccountFutureRequirementsErrorCodeVerificationDocumentTooLarge BankAccountFutureRequirementsErrorCode = "verification_document_too_large"
BankAccountFutureRequirementsErrorCodeVerificationDocumentTypeNotSupported BankAccountFutureRequirementsErrorCode = "verification_document_type_not_supported"
BankAccountFutureRequirementsErrorCodeVerificationExtraneousDirectors BankAccountFutureRequirementsErrorCode = "verification_extraneous_directors"
BankAccountFutureRequirementsErrorCodeVerificationFailedAddressMatch BankAccountFutureRequirementsErrorCode = "verification_failed_address_match"
BankAccountFutureRequirementsErrorCodeVerificationFailedBusinessIecNumber BankAccountFutureRequirementsErrorCode = "verification_failed_business_iec_number"
BankAccountFutureRequirementsErrorCodeVerificationFailedDocumentMatch BankAccountFutureRequirementsErrorCode = "verification_failed_document_match"
Expand All @@ -81,6 +84,7 @@ const (
BankAccountFutureRequirementsErrorCodeVerificationFailedResidentialAddress BankAccountFutureRequirementsErrorCode = "verification_failed_residential_address"
BankAccountFutureRequirementsErrorCodeVerificationFailedTaxIDMatch BankAccountFutureRequirementsErrorCode = "verification_failed_tax_id_match"
BankAccountFutureRequirementsErrorCodeVerificationFailedTaxIDNotIssued BankAccountFutureRequirementsErrorCode = "verification_failed_tax_id_not_issued"
BankAccountFutureRequirementsErrorCodeVerificationMissingDirectors BankAccountFutureRequirementsErrorCode = "verification_missing_directors"
BankAccountFutureRequirementsErrorCodeVerificationMissingExecutives BankAccountFutureRequirementsErrorCode = "verification_missing_executives"
BankAccountFutureRequirementsErrorCodeVerificationMissingOwners BankAccountFutureRequirementsErrorCode = "verification_missing_owners"
BankAccountFutureRequirementsErrorCodeVerificationRequiresAdditionalMemorandumOfAssociations BankAccountFutureRequirementsErrorCode = "verification_requires_additional_memorandum_of_associations"
Expand All @@ -97,10 +101,12 @@ const (
BankAccountRequirementsErrorCodeInvalidStreetAddress BankAccountRequirementsErrorCode = "invalid_street_address"
BankAccountRequirementsErrorCodeInvalidTOSAcceptance BankAccountRequirementsErrorCode = "invalid_tos_acceptance"
BankAccountRequirementsErrorCodeInvalidValueOther BankAccountRequirementsErrorCode = "invalid_value_other"
BankAccountRequirementsErrorCodeVerificationDirectorsMismatch BankAccountRequirementsErrorCode = "verification_directors_mismatch"
BankAccountRequirementsErrorCodeVerificationDocumentAddressMismatch BankAccountRequirementsErrorCode = "verification_document_address_mismatch"
BankAccountRequirementsErrorCodeVerificationDocumentAddressMissing BankAccountRequirementsErrorCode = "verification_document_address_missing"
BankAccountRequirementsErrorCodeVerificationDocumentCorrupt BankAccountRequirementsErrorCode = "verification_document_corrupt"
BankAccountRequirementsErrorCodeVerificationDocumentCountryNotSupported BankAccountRequirementsErrorCode = "verification_document_country_not_supported"
BankAccountRequirementsErrorCodeVerificationDocumentDirectorsMismatch BankAccountRequirementsErrorCode = "verification_document_directors_mismatch"
BankAccountRequirementsErrorCodeVerificationDocumentDOBMismatch BankAccountRequirementsErrorCode = "verification_document_dob_mismatch"
BankAccountRequirementsErrorCodeVerificationDocumentDuplicateType BankAccountRequirementsErrorCode = "verification_document_duplicate_type"
BankAccountRequirementsErrorCodeVerificationDocumentExpired BankAccountRequirementsErrorCode = "verification_document_expired"
Expand All @@ -126,6 +132,7 @@ const (
BankAccountRequirementsErrorCodeVerificationDocumentPhotoMismatch BankAccountRequirementsErrorCode = "verification_document_photo_mismatch"
BankAccountRequirementsErrorCodeVerificationDocumentTooLarge BankAccountRequirementsErrorCode = "verification_document_too_large"
BankAccountRequirementsErrorCodeVerificationDocumentTypeNotSupported BankAccountRequirementsErrorCode = "verification_document_type_not_supported"
BankAccountRequirementsErrorCodeVerificationExtraneousDirectors BankAccountRequirementsErrorCode = "verification_extraneous_directors"
BankAccountRequirementsErrorCodeVerificationFailedAddressMatch BankAccountRequirementsErrorCode = "verification_failed_address_match"
BankAccountRequirementsErrorCodeVerificationFailedBusinessIecNumber BankAccountRequirementsErrorCode = "verification_failed_business_iec_number"
BankAccountRequirementsErrorCodeVerificationFailedDocumentMatch BankAccountRequirementsErrorCode = "verification_failed_document_match"
Expand All @@ -137,6 +144,7 @@ const (
BankAccountRequirementsErrorCodeVerificationFailedResidentialAddress BankAccountRequirementsErrorCode = "verification_failed_residential_address"
BankAccountRequirementsErrorCodeVerificationFailedTaxIDMatch BankAccountRequirementsErrorCode = "verification_failed_tax_id_match"
BankAccountRequirementsErrorCodeVerificationFailedTaxIDNotIssued BankAccountRequirementsErrorCode = "verification_failed_tax_id_not_issued"
BankAccountRequirementsErrorCodeVerificationMissingDirectors BankAccountRequirementsErrorCode = "verification_missing_directors"
BankAccountRequirementsErrorCodeVerificationMissingExecutives BankAccountRequirementsErrorCode = "verification_missing_executives"
BankAccountRequirementsErrorCodeVerificationMissingOwners BankAccountRequirementsErrorCode = "verification_missing_owners"
BankAccountRequirementsErrorCodeVerificationRequiresAdditionalMemorandumOfAssociations BankAccountRequirementsErrorCode = "verification_requires_additional_memorandum_of_associations"
Expand Down
4 changes: 2 additions & 2 deletions bankaccount/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke bankaccount related APIs.
Expand Down
4 changes: 2 additions & 2 deletions billingportal/configuration/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package configuration
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /billing_portal/configurations APIs.
Expand Down
2 changes: 1 addition & 1 deletion billingportal/session/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package session
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
stripe "github.com/stripe/stripe-go/v75"
)

// Client is used to invoke /billing_portal/sessions APIs.
Expand Down
4 changes: 2 additions & 2 deletions capability/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /accounts/{account}/capabilities APIs.
Expand Down
2 changes: 1 addition & 1 deletion card.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

import (
"encoding/json"
"github.com/stripe/stripe-go/v74/form"
"github.com/stripe/stripe-go/v75/form"
"strconv"
)

Expand Down
4 changes: 2 additions & 2 deletions card/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke card related APIs.
Expand Down
2 changes: 1 addition & 1 deletion cashbalance/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"fmt"
"net/http"

stripe "github.com/stripe/stripe-go/v74"
stripe "github.com/stripe/stripe-go/v75"
)

// Client is used to invoke /customers/{customer}/cash_balance APIs.
Expand Down
4 changes: 0 additions & 4 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,10 +1155,6 @@ type Charge struct {
Customer *Customer `json:"customer"`
// An arbitrary string attached to the object. Often useful for displaying to users.
Description string `json:"description"`
// ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.
Destination *Account `json:"destination"`
// Details about the dispute if the charge has been disputed.
Dispute *Dispute `json:"dispute"`
// Whether the charge has been disputed.
Disputed bool `json:"disputed"`
// ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.
Expand Down
4 changes: 2 additions & 2 deletions charge/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package charge
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"

Check failure on line 13 in charge/client.go

View workflow job for this annotation

GitHub Actions / Lint

no required module provides package github.com/stripe/stripe-go/v75; to add it:
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /charges APIs.
Expand Down
4 changes: 2 additions & 2 deletions checkout/session/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package session
import (
"net/http"

stripe "github.com/stripe/stripe-go/v74"
"github.com/stripe/stripe-go/v74/form"
stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
)

// Client is used to invoke /checkout/sessions APIs.
Expand Down
6 changes: 0 additions & 6 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1601,8 +1601,6 @@ type CheckoutSessionSubscriptionDataParams struct {
ApplicationFeePercent *float64 `form:"application_fee_percent"`
// A future timestamp to anchor the subscription's billing cycle for new subscriptions.
BillingCycleAnchor *int64 `form:"billing_cycle_anchor"`
// The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
Coupon *string `form:"coupon"`
// The tax rates that will apply to any subscription item that does not have
// `tax_rates` set. Invoices created will have their `default_tax_rates` populated
// from the subscription.
Expand All @@ -1623,8 +1621,6 @@ type CheckoutSessionSubscriptionDataParams struct {
// will get before being charged for the first time. Has to be at least
// 48 hours in the future.
TrialEnd *int64 `form:"trial_end"`
// Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` on `subscription_data` is preferred. Defaults to `false`.
TrialFromPlan *bool `form:"trial_from_plan"`
// Integer representing the number of trial period days before the
// customer is charged for the first time. Has to be at least 1.
TrialPeriodDays *int64 `form:"trial_period_days"`
Expand Down Expand Up @@ -1756,8 +1752,6 @@ type CheckoutSessionParams struct {
ShippingAddressCollection *CheckoutSessionShippingAddressCollectionParams `form:"shipping_address_collection"`
// The shipping rate options to apply to this Session.
ShippingOptions []*CheckoutSessionShippingOptionParams `form:"shipping_options"`
// [Deprecated] The shipping rate to apply to this Session. Only up to one may be specified.
ShippingRates []*string `form:"shipping_rates"`
// Describes the type of transaction being performed by Checkout in order to customize
// relevant text on the page, such as the submit button. `submit_type` can only be
// specified on Checkout Sessions in `payment` mode, but not Checkout Sessions
Expand Down
Loading

0 comments on commit a5c46b2

Please sign in to comment.