Skip to content

Commit

Permalink
Update generated code for v277
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 23, 2023
1 parent 8096f53 commit 4218def
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions example/generated_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ import (
subscription "github.com/stripe/stripe-go/v74/subscription"
subscriptionitem "github.com/stripe/stripe-go/v74/subscriptionitem"
subscriptionschedule "github.com/stripe/stripe-go/v74/subscriptionschedule"
tax_calculation "github.com/stripe/stripe-go/v74/tax/calculation"
tax_transaction "github.com/stripe/stripe-go/v74/tax/transaction"
taxcode "github.com/stripe/stripe-go/v74/taxcode"
taxid "github.com/stripe/stripe-go/v74/taxid"
taxrate "github.com/stripe/stripe-go/v74/taxrate"
Expand Down Expand Up @@ -2808,3 +2810,21 @@ func TestWebhookEndpointUpdate(t *testing.T) {
result, _ := webhookendpoint.Update("we_xxxxxxxxxxxxx", params)
assert.NotNil(t, result)
}

func TestTaxTransactionCreateFromCalculation(t *testing.T) {
params := &stripe.TaxTransactionCreateFromCalculationParams{
Calculation: stripe.String("xxx"),
Reference: stripe.String("yyy"),
}
result, _ := tax_transaction.CreateFromCalculation(params)
assert.NotNil(t, result)
}

func TestTaxCalculationListLineItems(t *testing.T) {
params := &stripe.TaxCalculationListLineItemsParams{
Calculation: stripe.String("xxx"),
}
result := tax_calculation.ListLineItems(params)
assert.NotNil(t, result)
assert.Nil(t, result.Err())
}

0 comments on commit 4218def

Please sign in to comment.