Skip to content

Commit

Permalink
Merge pull request #1634 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
* Update generated code (new) (#1624)

* Update generated code for v266

* Update generated code for v270

* Update generated code for v274

* Update generated code for v275

* Update generated code for v276

* Update generated code for v277

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: pakrym-stripe <[email protected]>

* Bump version to 74.13.0

* Update generated code (new) (#1631)

Update generated code for v277

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Update generated code (new) (#1632)

Update generated code for v277

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Trigger workflow for tags (#1633)

* Update generated code for v279

* Update generated code for v281

* Update generated code for v282

* Update generated code for v283

* Update generated code for v284

* Update generated code for v285

* Update generated code for v286

* Update generated code for v287

---------

Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: pakrym-stripe <[email protected]>
Co-authored-by: Pavel Krymets <[email protected]>
  • Loading branch information
4 people authored Mar 30, 2023
2 parents ec8e407 + b4dfa14 commit 6b46af2
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 38 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: CI

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}
push:
branches:
- master
- beta
- sdk-release/**
- feature/**
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
branches:
- master
Expand Down
33 changes: 21 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
* Add support for `CollectInputs` on `TerminalReaderAction`
* Add support for new value `collect_inputs` on enum `TerminalReaderActionType`

## 74.13.0 - 2023-03-23
* [#1624](https://github.com/stripe/stripe-go/pull/1624) Update generated code
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
* Add support for `ListLineItems` and `New` methods on resource `Calculation`
* Add support for `CreateFromCalculation`, `CreateReversal`, `Get`, `ListLineItems`, and `New` methods on resource `Transaction`
* Add support for `CurrencyConversion` on `CheckoutSession`
* Add support for new value `link` on enum `PaymentLinkPaymentMethodTypes`
* Add support for `AutomaticPaymentMethods` on `SetupIntentParams` and `SetupIntent`

## 74.13.0-beta.1 - 2023-03-16
* [#1621](https://github.com/stripe/stripe-go/pull/1621) API Updates
* Add support for `CreateFromCalculation` method on resource `Tax.Transaction`
Expand All @@ -30,18 +39,6 @@

* [#1620](https://github.com/stripe/stripe-go/pull/1620) Merge upstream master

## 74.12.0-beta.1 - 2023-03-09
* [#1617](https://github.com/stripe/stripe-go/pull/1617) API Updates for beta branch
* Updated stable APIs to the latest version
* Remove support for `ListTransactions` method on resource `Tax.Transaction`
* Add support for `UpdateBehavior` on `SubscriptionPrebillingParams`, `SubscriptionPrebilling`, `SubscriptionSchedulePrebillingParams`, and `SubscriptionSchedulePrebilling`
* Add support for `Prebilling` on `SubscriptionScheduleAmendParams`
* Change type of `SubscriptionScheduleAppliesTo` from `nullable(QuotesResourceQuoteLinesAppliesTo)` to `QuotesResourceQuoteLinesAppliesTo`
* Add support for `TaxabilityOverride` on `TaxCalculationCustomerDetailsParams`, `TaxCalculationCustomerDetails`, and `TaxTransactionCustomerDetails`
* Add support for `TaxSummary` on `TaxCalculation`
* Remove support for `TaxBreakdown` on `TaxCalculation`
* Add support for `TaxBehavior` on `TaxSettingsDefaultsParams` and `TaxSettingsDefaults`

## 74.12.0 - 2023-03-16
* [#1622](https://github.com/stripe/stripe-go/pull/1622) API Updates
* Add support for `CashAppPayments` on `AccountCapabilitiesParams` and `AccountCapabilities`
Expand All @@ -66,6 +63,18 @@
* Add support for new value `cashapp` on enum `PaymentMethodType`
* [#1618](https://github.com/stripe/stripe-go/pull/1618) Install goimports before trying to run it

## 74.12.0-beta.1 - 2023-03-09
* [#1617](https://github.com/stripe/stripe-go/pull/1617) API Updates for beta branch
* Updated stable APIs to the latest version
* Remove support for `ListTransactions` method on resource `Tax.Transaction`
* Add support for `UpdateBehavior` on `SubscriptionPrebillingParams`, `SubscriptionPrebilling`, `SubscriptionSchedulePrebillingParams`, and `SubscriptionSchedulePrebilling`
* Add support for `Prebilling` on `SubscriptionScheduleAmendParams`
* Change type of `SubscriptionScheduleAppliesTo` from `nullable(QuotesResourceQuoteLinesAppliesTo)` to `QuotesResourceQuoteLinesAppliesTo`
* Add support for `TaxabilityOverride` on `TaxCalculationCustomerDetailsParams`, `TaxCalculationCustomerDetails`, and `TaxTransactionCustomerDetails`
* Add support for `TaxSummary` on `TaxCalculation`
* Remove support for `TaxBreakdown` on `TaxCalculation`
* Add support for `TaxBehavior` on `TaxSettingsDefaultsParams` and `TaxSettingsDefaults`

## 74.11.0 - 2023-03-09
* [#1616](https://github.com/stripe/stripe-go/pull/1616) API Updates
* Add support for `CardIssuing` on `IssuingCardholderIndividualParams`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v277
v287
8 changes: 8 additions & 0 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,10 @@ type AccountCompanyParams struct {
DirectorsProvided *bool `form:"directors_provided"`
// Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive` requirement.
ExecutivesProvided *bool `form:"executives_provided"`
// The export license ID number of the company, also referred as Import Export Code (India only).
ExportLicenseID *string `form:"export_license_id"`
// The purpose code to use for export transactions (India only).
ExportPurposeCode *string `form:"export_purpose_code"`
// The company's legal name.
Name *string `form:"name"`
// The Kana variation of the company's legal name (Japan only).
Expand Down Expand Up @@ -1026,6 +1030,10 @@ type AccountCompany struct {
DirectorsProvided bool `json:"directors_provided"`
// Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
ExecutivesProvided bool `json:"executives_provided"`
// The export license ID number of the company, also referred as Import Export Code (India only).
ExportLicenseID string `json:"export_license_id"`
// The purpose code to use for export transactions (India only).
ExportPurposeCode string `json:"export_purpose_code"`
// The company's legal name.
Name string `json:"name"`
// The Kana variation of the company's legal name (Japan only).
Expand Down
4 changes: 2 additions & 2 deletions bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const (

// For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a transfer sent to this bank account fails, we'll set the status to `errored` and will not continue to send transfers until the bank details are updated.
//
// For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
// For external accounts, possible values are `new`, `errored` and `verification_failed`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated. In India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
type BankAccountStatus string

// List of values that BankAccountStatus can take
Expand Down Expand Up @@ -393,7 +393,7 @@ type BankAccount struct {
RoutingNumber string `json:"routing_number"`
// For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a transfer sent to this bank account fails, we'll set the status to `errored` and will not continue to send transfers until the bank details are updated.
//
// For external accounts, possible values are `new` and `errored`. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
// For external accounts, possible values are `new`, `errored` and `verification_failed`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated. In India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
Status BankAccountStatus `json:"status"`
}

Expand Down
1 change: 0 additions & 1 deletion invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ type InvoiceStatus string

// List of values that InvoiceStatus can take
const (
InvoiceStatusDeleted InvoiceStatus = "deleted"
InvoiceStatusDraft InvoiceStatus = "draft"
InvoiceStatusOpen InvoiceStatus = "open"
InvoiceStatusPaid InvoiceStatus = "paid"
Expand Down
18 changes: 0 additions & 18 deletions tax/transaction/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ type Client struct {
Key string
}

// New creates a new tax transaction.
func New(params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error) {
return getC().New(params)
}

// New creates a new tax transaction.
func (c Client) New(params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error) {
transaction := &stripe.TaxTransaction{}
err := c.B.Call(
http.MethodPost,
"/v1/tax/transactions",
c.Key,
params,
transaction,
)
return transaction, err
}

// Get returns the details of a tax transaction.
func Get(id string, params *stripe.TaxTransactionParams) (*stripe.TaxTransaction, error) {
return getC().Get(id, params)
Expand Down
1 change: 1 addition & 0 deletions tax_registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type TaxRegistrationType string
// List of values that TaxRegistrationType can take
const (
TaxRegistrationTypeDomesticSmallSeller TaxRegistrationType = "domestic_small_seller"
TaxRegistrationTypeIoss TaxRegistrationType = "ioss"
TaxRegistrationTypeSimplified TaxRegistrationType = "simplified"
TaxRegistrationTypeStandard TaxRegistrationType = "standard"
TaxRegistrationTypeVATOssNonUnion TaxRegistrationType = "vat_oss_non_union"
Expand Down
4 changes: 0 additions & 4 deletions tax_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ const (
// Retrieves a Tax Transaction object.
type TaxTransactionParams struct {
Params `form:"*"`
// Tax Calculation ID to be used as input when creating the transaction.
FromCalculation *string `form:"from_calculation"`
// A custom order or sale identifier, such as 'myOrder_123'. Must be unique across all transactions including reversals.
Reference *string `form:"reference"`
}

// The line item amounts to reverse.
Expand Down
2 changes: 2 additions & 0 deletions testhelpersterminal_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type TestHelpersTerminalReaderPresentPaymentMethodInteracPresentParams struct {
// Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
type TestHelpersTerminalReaderPresentPaymentMethodParams struct {
Params `form:"*"`
// Simulated on-reader tip amount.
AmountTip *int64 `form:"amount_tip"`
// Simulated data for the card_present payment method.
CardPresent *TestHelpersTerminalReaderPresentPaymentMethodCardPresentParams `form:"card_present"`
// Simulated data for the interac_present payment method.
Expand Down

0 comments on commit 6b46af2

Please sign in to comment.