Skip to content

Commit a66acb8

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent 997727d commit a66acb8

File tree

3 files changed

+288
-6
lines changed

3 files changed

+288
-6
lines changed

openapi/api.yaml

Lines changed: 219 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4462,6 +4462,51 @@ paths:
44624462
accountNotes.Fetch()\n\tif e, ok := err.(*recurly.Error); ok {\n\t\tfmt.Printf(\"Failed
44634463
to retrieve next page: %v\", e)\n\t\tbreak\n\t}\n\tfor i, note := range
44644464
accountNotes.Data() {\n\t\tfmt.Printf(\"Account Note %3d: %s\\n\",\n\t\t\ti,\n\t\t\tnote.Id,\n\t\t)\n\t}\n}"
4465+
post:
4466+
tags:
4467+
- note
4468+
operationId: create_account_note
4469+
summary: Create an account note
4470+
parameters:
4471+
- "$ref": "#/components/parameters/account_id"
4472+
requestBody:
4473+
content:
4474+
application/json:
4475+
schema:
4476+
"$ref": "#/components/schemas/AccountNoteCreate"
4477+
required: true
4478+
responses:
4479+
'201':
4480+
description: An account note.
4481+
content:
4482+
application/json:
4483+
schema:
4484+
"$ref": "#/components/schemas/AccountNote"
4485+
'400':
4486+
description: Bad request; perhaps missing or invalid parameters.
4487+
content:
4488+
application/json:
4489+
schema:
4490+
"$ref": "#/components/schemas/Error"
4491+
'404':
4492+
description: Incorrect site or account ID.
4493+
content:
4494+
application/json:
4495+
schema:
4496+
"$ref": "#/components/schemas/Error"
4497+
'422':
4498+
description: A validation error.
4499+
content:
4500+
application/json:
4501+
schema:
4502+
"$ref": "#/components/schemas/Error"
4503+
default:
4504+
description: Unexpected error.
4505+
content:
4506+
application/json:
4507+
schema:
4508+
"$ref": "#/components/schemas/Error"
4509+
x-code-samples: []
44654510
"/accounts/{account_id}/notes/{account_note_id}":
44664511
get:
44674512
tags:
@@ -4470,12 +4515,7 @@ paths:
44704515
summary: Fetch an account note
44714516
parameters:
44724517
- "$ref": "#/components/parameters/account_id"
4473-
- name: account_note_id
4474-
in: path
4475-
description: Account Note ID.
4476-
required: true
4477-
schema:
4478-
type: string
4518+
- "$ref": "#/components/parameters/account_note_id"
44794519
responses:
44804520
'200':
44814521
description: An account note.
@@ -4588,6 +4628,30 @@ paths:
45884628
{\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
45894629
Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Fetched Account
45904630
Note: %v\", accountNote)"
4631+
delete:
4632+
tags:
4633+
- note
4634+
operationId: remove_account_note
4635+
summary: Delete an account note
4636+
parameters:
4637+
- "$ref": "#/components/parameters/account_id"
4638+
- "$ref": "#/components/parameters/account_note_id"
4639+
responses:
4640+
'204':
4641+
description: Account note deleted.
4642+
'404':
4643+
description: Incorrect site, account or note ID.
4644+
content:
4645+
application/json:
4646+
schema:
4647+
"$ref": "#/components/schemas/Error"
4648+
default:
4649+
description: Unexpected error.
4650+
content:
4651+
application/json:
4652+
schema:
4653+
"$ref": "#/components/schemas/Error"
4654+
x-code-samples: []
45914655
"/accounts/{account_id}/shipping_addresses":
45924656
get:
45934657
tags:
@@ -16941,6 +17005,13 @@ components:
1694117005
required: true
1694217006
schema:
1694317007
type: string
17008+
account_note_id:
17009+
name: account_note_id
17010+
in: path
17011+
description: Account Note ID.
17012+
required: true
17013+
schema:
17014+
type: string
1694417015
add_on_id:
1694517016
name: add_on_id
1694617017
in: path
@@ -18046,6 +18117,13 @@ components:
1804618117
description: The Avalara AvaTax value that can be passed to identify the
1804718118
customer type for tax purposes. The range of values can be A - R (more
1804818119
info at Avalara). Value is case-sensitive.
18120+
bill_date:
18121+
type: string
18122+
title: Bill Date
18123+
format: date-time
18124+
description: The preferred billing date for the account. This date will
18125+
be used as the billing date for when activating new subscriptions on the
18126+
account.
1804918127
AccountResponse:
1805018128
type: object
1805118129
properties:
@@ -18152,6 +18230,13 @@ components:
1815218230
description: The Avalara AvaTax value that can be passed to identify the
1815318231
customer type for tax purposes. The range of values can be A - R (more
1815418232
info at Avalara). Value is case-sensitive.
18233+
bill_date:
18234+
title: Bill Date
18235+
type: string
18236+
format: date-time
18237+
description: The preferred billing date for the account. This date will
18238+
be used as the billing date for when activating new subscriptions on the
18239+
account.
1815518240
AccountNote:
1815618241
type: object
1815718242
required:
@@ -18175,6 +18260,14 @@ components:
1817518260
type: string
1817618261
format: date-time
1817718262
readOnly: true
18263+
AccountNoteCreate:
18264+
type: object
18265+
required:
18266+
- message
18267+
properties:
18268+
message:
18269+
type: string
18270+
description: The content of the account note.
1817818271
AccountMini:
1817918272
type: object
1818018273
title: Account mini details
@@ -18488,6 +18581,17 @@ components:
1848818581
offering you can also choose to instead use simple values of `unknown`,
1848918582
`physical`, or `digital` tax codes. If `item_code`/`item_id` is part of
1849018583
the request then `tax_code` must be absent.
18584+
harmonized_system_code:
18585+
type: string
18586+
title: Harmonized System code
18587+
description: The Harmonized System (HS) code is an internationally standardized
18588+
system of names and numbers to classify traded products. The HS code,
18589+
sometimes called Commodity Code, is used by customs authorities around
18590+
the world to identify products when assessing duties and taxes. The HS
18591+
code may also be referred to as the tariff code or customs code. Values
18592+
should contain only digits and decimals.
18593+
pattern: "^\\d+(\\.\\d+)*$"
18594+
maxLength: 25
1849118595
display_quantity:
1849218596
type: boolean
1849318597
title: Display quantity?
@@ -18710,6 +18814,17 @@ components:
1871018814
offering you can also choose to instead use simple values of `unknown`,
1871118815
`physical`, or `digital` tax codes. If `item_code`/`item_id` is part of
1871218816
the request then `tax_code` must be absent.
18817+
harmonized_system_code:
18818+
type: string
18819+
title: Harmonized System code
18820+
description: The Harmonized System (HS) code is an internationally standardized
18821+
system of names and numbers to classify traded products. The HS code,
18822+
sometimes called Commodity Code, is used by customs authorities around
18823+
the world to identify products when assessing duties and taxes. The HS
18824+
code may also be referred to as the tariff code or customs code. Values
18825+
should contain only digits and decimals.
18826+
pattern: "^\\d+(\\.\\d+)*$"
18827+
maxLength: 25
1871318828
currencies:
1871418829
type: array
1871518830
title: Add-on pricing
@@ -18865,6 +18980,17 @@ components:
1886518980
offering you can also choose to instead use simple values of `unknown`,
1886618981
`physical`, or `digital` tax codes. If an `Item` is associated to the
1886718982
`AddOn` then `tax_code` must be absent.
18983+
harmonized_system_code:
18984+
type: string
18985+
title: Harmonized System code
18986+
description: The Harmonized System (HS) code is an internationally standardized
18987+
system of names and numbers to classify traded products. The HS code,
18988+
sometimes called Commodity Code, is used by customs authorities around
18989+
the world to identify products when assessing duties and taxes. The HS
18990+
code may also be referred to as the tariff code or customs code. Values
18991+
should contain only digits and decimals.
18992+
pattern: "^\\d+(\\.\\d+)*$"
18993+
maxLength: 25
1886818994
display_quantity:
1886918995
type: boolean
1887018996
title: Display quantity?
@@ -20207,6 +20333,17 @@ components:
2020720333
codes using any of these tax integrations. For Recurly's In-the-Box tax
2020820334
offering you can also choose to instead use simple values of `unknown`,
2020920335
`physical`, or `digital` tax codes.
20336+
harmonized_system_code:
20337+
type: string
20338+
title: Harmonized System code
20339+
description: The Harmonized System (HS) code is an internationally standardized
20340+
system of names and numbers to classify traded products. The HS code,
20341+
sometimes called Commodity Code, is used by customs authorities around
20342+
the world to identify products when assessing duties and taxes. The HS
20343+
code may also be referred to as the tariff code or customs code. Values
20344+
should contain only digits and decimals.
20345+
pattern: "^\\d+(\\.\\d+)*$"
20346+
maxLength: 25
2021020347
tax_exempt:
2021120348
type: boolean
2021220349
title: Tax exempt?
@@ -20317,6 +20454,17 @@ components:
2031720454
codes using any of these tax integrations. For Recurly's In-the-Box tax
2031820455
offering you can also choose to instead use simple values of `unknown`,
2031920456
`physical`, or `digital` tax codes.
20457+
harmonized_system_code:
20458+
type: string
20459+
title: Harmonized System code
20460+
description: The Harmonized System (HS) code is an internationally standardized
20461+
system of names and numbers to classify traded products. The HS code,
20462+
sometimes called Commodity Code, is used by customs authorities around
20463+
the world to identify products when assessing duties and taxes. The HS
20464+
code may also be referred to as the tariff code or customs code. Values
20465+
should contain only digits and decimals.
20466+
pattern: "^\\d+(\\.\\d+)*$"
20467+
maxLength: 25
2032020468
tax_exempt:
2032120469
type: boolean
2032220470
title: Tax exempt?
@@ -20415,6 +20563,17 @@ components:
2041520563
codes using any of these tax integrations. For Recurly's In-the-Box tax
2041620564
offering you can also choose to instead use simple values of `unknown`,
2041720565
`physical`, or `digital` tax codes.
20566+
harmonized_system_code:
20567+
type: string
20568+
title: Harmonized System Code
20569+
description: The Harmonized System (HS) code is an internationally standardized
20570+
system of names and numbers to classify traded products. The HS code,
20571+
sometimes called Commodity Code, is used by customs authorities around
20572+
the world to identify products when assessing duties and taxes. The HS
20573+
code may also be referred to as the tariff code or customs code. Values
20574+
should contain only digits and decimals.
20575+
pattern: "^\\d+(\\.\\d+)*$"
20576+
maxLength: 25
2041820577
tax_exempt:
2041920578
type: boolean
2042020579
title: Tax exempt?
@@ -21310,6 +21469,17 @@ components:
2131021469
codes using any of these tax integrations. For Recurly's In-the-Box tax
2131121470
offering you can also choose to instead use simple values of `unknown`,
2131221471
`physical`, or `digital` tax codes.
21472+
harmonized_system_code:
21473+
type: string
21474+
title: Harmonized System Code
21475+
description: The Harmonized System (HS) code is an internationally standardized
21476+
system of names and numbers to classify traded products. The HS code,
21477+
sometimes called Commodity Code, is used by customs authorities around
21478+
the world to identify products when assessing duties and taxes. The HS
21479+
code may also be referred to as the tariff code or customs code. Values
21480+
should contain only digits and decimals.
21481+
maxLength: 25
21482+
pattern: "^\\d+(\\.\\d+)*$"
2131321483
tax_info:
2131421484
"$ref": "#/components/schemas/TaxInfo"
2131521485
origin_tax_address_source:
@@ -21554,6 +21724,18 @@ components:
2155421724
codes using any of these tax integrations. For Recurly's In-the-Box tax
2155521725
offering you can also choose to instead use simple values of `unknown`,
2155621726
`physical`, or `digital` tax codes.
21727+
harmonized_system_code:
21728+
type: string
21729+
title: Harmonized System Code
21730+
description: The Harmonized System (HS) code is an internationally standardized
21731+
system of names and numbers to classify traded products. The HS code,
21732+
sometimes called Commodity Code, is used by customs authorities around
21733+
the world to identify products when assessing duties and taxes. The HS
21734+
code may also be referred to as the tariff code or customs code. Values
21735+
should contain only digits and decimals. If `item_code`/`item_id` is part
21736+
of the request then `harmonized_system_code` must be absent.
21737+
maxLength: 25
21738+
pattern: "^\\d+(\\.\\d+)*$"
2155721739
product_code:
2155821740
type: string
2155921741
title: Product code
@@ -21749,6 +21931,17 @@ components:
2174921931
codes using any of these tax integrations. For Recurly's In-the-Box tax
2175021932
offering you can also choose to instead use simple values of `unknown`,
2175121933
`physical`, or `digital` tax codes.
21934+
harmonized_system_code:
21935+
type: string
21936+
title: Harmonized System Code
21937+
description: The Harmonized System (HS) code is an internationally standardized
21938+
system of names and numbers to classify traded products. The HS code,
21939+
sometimes called Commodity Code, is used by customs authorities around
21940+
the world to identify products when assessing duties and taxes. The HS
21941+
code may also be referred to as the tariff code or customs code. Values
21942+
should contain only digits and decimals.
21943+
maxLength: 25
21944+
pattern: "^\\d+(\\.\\d+)*$"
2175221945
tax_exempt:
2175321946
type: boolean
2175421947
title: Tax exempt?
@@ -22182,6 +22375,22 @@ components:
2218222375
- full_amount
2218322376
- prorated_amount
2218422377
- none
22378+
SubscriptionCreateProrationSettings:
22379+
type: object
22380+
title: Proration Settings
22381+
description: Allows you to control how any resulting charges will be calculated
22382+
and prorated.
22383+
properties:
22384+
charge:
22385+
"$ref": "#/components/schemas/SubscriptionCreateProrationSettingsChargeEnum"
22386+
SubscriptionCreateProrationSettingsChargeEnum:
22387+
type: string
22388+
title: Charge
22389+
description: Determines how the amount charged is determined for this change
22390+
default: prorated_amount
22391+
enum:
22392+
- full_amount
22393+
- prorated_amount
2218522394
Settings:
2218622395
type: object
2218722396
properties:
@@ -23787,6 +23996,8 @@ components:
2378723996
second limit on creating subscriptions. Should only be used when creating
2378823997
subscriptions in bulk from the API.
2378923998
default: false
23999+
proration_settings:
24000+
"$ref": "#/components/schemas/SubscriptionCreateProrationSettings"
2379024001
required:
2379124002
- plan_code
2379224003
- currency
@@ -23898,6 +24109,8 @@ components:
2389824109
second limit on creating subscriptions. Should only be used when creating
2389924110
subscriptions in bulk from the API.
2390024111
default: false
24112+
proration_settings:
24113+
"$ref": "#/components/schemas/SubscriptionCreateProrationSettings"
2390124114
required:
2390224115
- plan_code
2390324116
SubscriptionUpdate:

0 commit comments

Comments
 (0)