Skip to content

Commit

Permalink
Merge pull request #1793 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Jan 4, 2024
2 parents 53510f6 + 37e4903 commit 93cb612
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 11 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 76.11.0 - 2024-01-04
* [#1792](https://github.com/stripe/stripe-go/pull/1792) Update generated code
* Add support for `Get` method on resource `Tax.Registration`
* Change type of `SubscriptionScheduleDefaultSettingsInvoiceSettings` from `nullable(InvoiceSettingSubscriptionScheduleSetting)` to `InvoiceSettingSubscriptionScheduleSetting`
* [#1790](https://github.com/stripe/stripe-go/pull/1790) Update generated code
* Add support for `CollectionMethod` on `MandatePaymentMethodDetailsUsBankAccount`
* Add support for `MandateOptions` on `PaymentIntentConfirmPaymentMethodOptionsUsBankAccountParams`, `PaymentIntentPaymentMethodOptionsUsBankAccountParams`, `PaymentIntentPaymentMethodOptionsUsBankAccount`, `SetupIntentConfirmPaymentMethodOptionsUsBankAccountParams`, `SetupIntentPaymentMethodOptionsUsBankAccountParams`, and `SetupIntentPaymentMethodOptionsUsBankAccount`
* [#1789](https://github.com/stripe/stripe-go/pull/1789) Update generated code
* Add support for new resource `FinancialConnections.Transaction`
* Add support for `Get` and `List` methods on resource `Transaction`
* Add support for `Subscribe` and `Unsubscribe` methods on resource `FinancialConnections.Account`
* Add support for `Features` on `AccountSessionComponentsPayoutsParams`
* Add support for `EditPayoutSchedule`, `InstantPayouts`, and `StandardPayouts` on `AccountSessionComponentsPayoutsFeatures`
* Change type of `CheckoutSessionPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, `CheckoutSessionPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, `InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `PaymentIntentConfirmPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, `PaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, `PaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `SetupIntentConfirmPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, `SetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, `SetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetchParams`, and `SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch` from `literal('balances')` to `enum('balances'|'transactions')`
* Add support for new value `financial_connections.account.refreshed_transactions` on enum `EventType`
* Add support for `Subscriptions` and `TransactionRefresh` on `FinancialConnectionsAccount`
* Add support for `NextRefreshAvailableAt` on `FinancialConnectionsAccountBalanceRefresh`
* Add support for new value `transactions` on enum `FinancialConnectionsSessionPrefetch`
* Add support for new value `unknown` on enum `IssuingAuthorizationVerificationDataAuthenticationExemptionType`
* Add support for new value `challenge` on enums `PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure` and `SetupIntentPaymentMethodOptionsCardRequestThreeDSecure`
* Add support for `RevolutPay` on `PaymentMethodConfigurationParams` and `PaymentMethodConfiguration`
* Change type of `QuoteInvoiceSettings` from `nullable(InvoiceSettingQuoteSetting)` to `InvoiceSettingQuoteSetting`
* Add support for `DestinationDetails` on `Refund`
* [#1788](https://github.com/stripe/stripe-go/pull/1788) Use gofmt to format and lint

## 76.11.0-beta.1 - 2023-12-22
* [#1791](https://github.com/stripe/stripe-go/pull/1791) Update generated code for beta
* Add support for `CapitalFinancingPromotion` on `AccountSessionComponentsParams` and `AccountSessionComponents`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v737
v742
5 changes: 1 addition & 4 deletions quotepreviewsubscriptionschedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@ type QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer struct
// Type of the account referenced.
Type QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerType `json:"type"`
}

// The subscription schedule's default invoice settings.
type QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettings struct {
// Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
DaysUntilDue int64 `json:"days_until_due"`
Expand All @@ -284,8 +282,7 @@ type QuotePreviewSubscriptionScheduleDefaultSettings struct {
// ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
DefaultPaymentMethod *PaymentMethod `json:"default_payment_method"`
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// The subscription schedule's default invoice settings.
Description string `json:"description"`
InvoiceSettings *QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettings `json:"invoice_settings"`
// 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"`
Expand Down
4 changes: 2 additions & 2 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ type SubscriptionParams struct {
AutomaticTax *SubscriptionAutomaticTaxParams `form:"automatic_tax"`
// For new subscriptions, a past timestamp to backdate the subscription's start date to. If set, the first invoice will contain a proration for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
BackdateStartDate *int64 `form:"backdate_start_date"`
// A future timestamp to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
// A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
BillingCycleAnchor *int64 `form:"billing_cycle_anchor"`
BillingCycleAnchorNow *bool `form:"-"` // See custom AppendTo
BillingCycleAnchorUnchanged *bool `form:"-"` // See custom AppendTo
Expand Down Expand Up @@ -990,7 +990,7 @@ type Subscription struct {
// A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
ApplicationFeePercent float64 `json:"application_fee_percent"`
AutomaticTax *SubscriptionAutomaticTax `json:"automatic_tax"`
// Determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
// The reference point that aligns future [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
BillingCycleAnchor int64 `json:"billing_cycle_anchor"`
// Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
BillingThresholds *SubscriptionBillingThresholds `json:"billing_thresholds"`
Expand Down
5 changes: 1 addition & 4 deletions subscriptionschedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,6 @@ type SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer struct {
// Type of the account referenced.
Type SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerType `json:"type"`
}

// The subscription schedule's default invoice settings.
type SubscriptionScheduleDefaultSettingsInvoiceSettings struct {
// Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
DaysUntilDue int64 `json:"days_until_due"`
Expand All @@ -999,8 +997,7 @@ type SubscriptionScheduleDefaultSettings struct {
// ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
DefaultPaymentMethod *PaymentMethod `json:"default_payment_method"`
// Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
Description string `json:"description"`
// The subscription schedule's default invoice settings.
Description string `json:"description"`
InvoiceSettings *SubscriptionScheduleDefaultSettingsInvoiceSettings `json:"invoice_settings"`
// 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"`
Expand Down
13 changes: 13 additions & 0 deletions tax/registration/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ func (c Client) New(params *stripe.TaxRegistrationParams) (*stripe.TaxRegistrati
return registration, err
}

// Get returns the details of a tax registration.
func Get(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error) {
return getC().Get(id, params)
}

// Get returns the details of a tax registration.
func (c Client) Get(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error) {
path := stripe.FormatURLPath("/v1/tax/registrations/%s", id)
registration := &stripe.TaxRegistration{}
err := c.B.Call(http.MethodGet, path, c.Key, params, registration)
return registration, err
}

// Update updates a tax registration's properties.
func Update(id string, params *stripe.TaxRegistrationParams) (*stripe.TaxRegistration, error) {
return getC().Update(id, params)
Expand Down

0 comments on commit 93cb612

Please sign in to comment.