Skip to content

Commit a47f770

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2019-10-10
1 parent bc3d310 commit a47f770

File tree

2 files changed

+93
-68
lines changed

2 files changed

+93
-68
lines changed

openapi/api.yaml

Lines changed: 89 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -8982,10 +8982,11 @@ paths:
89828982
summary: Refund an invoice
89838983
description: |
89848984
There are two ways to do a refund:
8985-
* refund a specific amount which is divided across all the line items.
8986-
* refund quantities of line items.
8987-
If you want to refund the entire refundable amount on the invoice, the
8988-
simplest way is to do `type=amount` without specifiying an `amount`.
8985+
* Apply a specific dollar/cent amount or percentage amount to an entire invoice, which will refund the resulting amount across all line items on the invoice.
8986+
* If you want to refund the entire refundable amount on the invoice, the simplest way is to do `type=amount` without specifiying an `amount`.
8987+
* Note: You must have the Credit Memos feature flag enabled on your site to utilize percentage amount refunds on invoices.
8988+
* Apply a refund to one or more individual line items on an invoice. A line item can be refunded by a quantity amount, a specific dollar/cent amount, or a percentage amount and will only apply to the specific line item you are aiming to refund.
8989+
* Note: You must have the Credit Memos feature flag enabled on your site to utilize specific dollar/cent amount and percentage amount refunds on line items.
89898990
parameters:
89908991
- "$ref": "#/components/parameters/site_id"
89918992
- "$ref": "#/components/parameters/invoice_id"
@@ -16128,11 +16129,14 @@ components:
1612816129
minimum: 0
1612916130
tax_code:
1613016131
type: string
16131-
title: Tax code
16132-
description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
16133-
The tax code values are specific to each tax system. If you are using
16134-
Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1613516132
maxLength: 50
16133+
title: Tax code
16134+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
16135+
tax solution to determine taxation rules. You can pass in specific tax
16136+
codes using any of these tax integrations. For Recurly's In-the-Box tax
16137+
offering you can also choose to instead use simple values of `unknown`,
16138+
`physical`, or `digital` tax codes. If `item_code`/`item_id` is part of
16139+
the request then `tax_code` must be absent.
1613616140
display_quantity:
1613716141
type: boolean
1613816142
title: Display quantity?
@@ -16339,14 +16343,14 @@ components:
1633916343
minimum: 0
1634016344
tax_code:
1634116345
type: string
16342-
title: Tax code
16343-
description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
16344-
tax feature to determine taxation rules. If you have your own AvaTax or
16345-
Vertex account configured, use their tax codes to assign specific tax
16346-
rules. If you are using Recurly's EU VAT feature, you can use values of
16347-
`unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part
16348-
of the request then `tax_code` must be absent.
1634916346
maxLength: 50
16347+
title: Tax code
16348+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
16349+
tax solution to determine taxation rules. You can pass in specific tax
16350+
codes using any of these tax integrations. For Recurly's In-the-Box tax
16351+
offering you can also choose to instead use simple values of `unknown`,
16352+
`physical`, or `digital` tax codes. If `item_code`/`item_id` is part of
16353+
the request then `tax_code` must be absent.
1635016354
currencies:
1635116355
type: array
1635216356
title: Add-on pricing
@@ -16472,14 +16476,14 @@ components:
1647216476
minimum: 0
1647316477
tax_code:
1647416478
type: string
16475-
title: Tax code
16476-
description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
16477-
tax feature to determine taxation rules. If you have your own AvaTax or
16478-
Vertex account configured, use their tax codes to assign specific tax
16479-
rules. If you are using Recurly's EU VAT feature, you can use values of
16480-
`unknown`, `physical`, or `digital`. If an `Item` is associated to the
16481-
`AddOn` then `tax code` must be absent.
1648216479
maxLength: 50
16480+
title: Tax code
16481+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
16482+
tax solution to determine taxation rules. You can pass in specific tax
16483+
codes using any of these tax integrations. For Recurly's In-the-Box tax
16484+
offering you can also choose to instead use simple values of `unknown`,
16485+
`physical`, or `digital` tax codes. If an `Item` is associated to the
16486+
`AddOn` then `tax_code` must be absent.
1648316487
display_quantity:
1648416488
type: boolean
1648516489
title: Display quantity?
@@ -16670,8 +16674,7 @@ components:
1667016674
maxLength: 50
1667116675
gateway_code:
1667216676
type: string
16673-
title: An identifier for a specific payment gateway. Must be used in conjunction
16674-
with `gateway_token`.
16677+
title: An identifier for a specific payment gateway.
1667516678
maxLength: 12
1667616679
gateway_attributes:
1667716680
type: object
@@ -17678,11 +17681,13 @@ components:
1767817681
minimum: 0
1767917682
tax_code:
1768017683
type: string
17681-
title: Tax code
17682-
description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
17683-
The tax code values are specific to each tax system. If you are using
17684-
Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1768517684
maxLength: 50
17685+
title: Tax code
17686+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
17687+
tax solution to determine taxation rules. You can pass in specific tax
17688+
codes using any of these tax integrations. For Recurly's In-the-Box tax
17689+
offering you can also choose to instead use simple values of `unknown`,
17690+
`physical`, or `digital` tax codes.
1768617691
tax_exempt:
1768717692
type: boolean
1768817693
title: Tax exempt?
@@ -17767,11 +17772,13 @@ components:
1776717772
minimum: 0
1776817773
tax_code:
1776917774
type: string
17770-
title: Tax code
17771-
description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
17772-
The tax code values are specific to each tax system. If you are using
17773-
Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1777417775
maxLength: 50
17776+
title: Tax code
17777+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
17778+
tax solution to determine taxation rules. You can pass in specific tax
17779+
codes using any of these tax integrations. For Recurly's In-the-Box tax
17780+
offering you can also choose to instead use simple values of `unknown`,
17781+
`physical`, or `digital` tax codes.
1777517782
tax_exempt:
1777617783
type: boolean
1777717784
title: Tax exempt?
@@ -17844,11 +17851,13 @@ components:
1784417851
minimum: 0
1784517852
tax_code:
1784617853
type: string
17847-
title: Tax code
17848-
description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
17849-
The tax code values are specific to each tax system. If you are using
17850-
Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1785117854
maxLength: 50
17855+
title: Tax code
17856+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
17857+
tax solution to determine taxation rules. You can pass in specific tax
17858+
codes using any of these tax integrations. For Recurly's In-the-Box tax
17859+
offering you can also choose to instead use simple values of `unknown`,
17860+
`physical`, or `digital` tax codes.
1785217861
tax_exempt:
1785317862
type: boolean
1785417863
title: Tax exempt?
@@ -18721,11 +18730,13 @@ components:
1872118730
minimum: 0
1872218731
tax_code:
1872318732
type: string
18724-
title: Tax code
18725-
description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
18726-
The tax code values are specific to each tax system. If you are using
18727-
Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1872818733
maxLength: 50
18734+
title: Tax code
18735+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
18736+
tax solution to determine taxation rules. You can pass in specific tax
18737+
codes using any of these tax integrations. For Recurly's In-the-Box tax
18738+
offering you can also choose to instead use simple values of `unknown`,
18739+
`physical`, or `digital` tax codes.
1872918740
tax_info:
1873018741
"$ref": "#/components/schemas/TaxInfo"
1873118742
proration_rate:
@@ -18928,13 +18939,13 @@ components:
1892818939
minimum: 0
1892918940
tax_code:
1893018941
type: string
18931-
title: Tax code
18932-
description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
18933-
tax feature to determine taxation rules. If you have your own AvaTax or
18934-
Vertex account configured, use their tax codes to assign specific tax
18935-
rules. If you are using Recurly's EU VAT feature, you can use values of
18936-
`unknown`, `physical`, or `digital`.
1893718942
maxLength: 50
18943+
title: Tax code
18944+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
18945+
tax solution to determine taxation rules. You can pass in specific tax
18946+
codes using any of these tax integrations. For Recurly's In-the-Box tax
18947+
offering you can also choose to instead use simple values of `unknown`,
18948+
`physical`, or `digital` tax codes.
1893818949
product_code:
1893918950
type: string
1894018951
title: Product code
@@ -19156,11 +19167,13 @@ components:
1915619167
minimum: 0
1915719168
tax_code:
1915819169
type: string
19159-
title: Tax code
19160-
description: Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.
19161-
The tax code values are specific to each tax system. If you are using
19162-
Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1916319170
maxLength: 50
19171+
title: Tax code
19172+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
19173+
tax solution to determine taxation rules. You can pass in specific tax
19174+
codes using any of these tax integrations. For Recurly's In-the-Box tax
19175+
offering you can also choose to instead use simple values of `unknown`,
19176+
`physical`, or `digital` tax codes.
1916419177
tax_exempt:
1916519178
type: boolean
1916619179
title: Tax exempt?
@@ -19345,13 +19358,13 @@ components:
1934519358
minimum: 0
1934619359
tax_code:
1934719360
type: string
19348-
title: Tax code
19349-
description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
19350-
tax feature to determine taxation rules. If you have your own AvaTax or
19351-
Vertex account configured, use their tax codes to assign specific tax
19352-
rules. If you are using Recurly's EU VAT feature, you can use values of
19353-
`unknown`, `physical`, or `digital`.
1935419361
maxLength: 50
19362+
title: Tax code
19363+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
19364+
tax solution to determine taxation rules. You can pass in specific tax
19365+
codes using any of these tax integrations. For Recurly's In-the-Box tax
19366+
offering you can also choose to instead use simple values of `unknown`,
19367+
`physical`, or `digital` tax codes.
1935519368
tax_exempt:
1935619369
type: boolean
1935719370
title: Tax exempt?
@@ -19561,13 +19574,13 @@ components:
1956119574
minimum: 0
1956219575
tax_code:
1956319576
type: string
19564-
title: Tax code
19565-
description: Optional field used by Avalara, Vertex, and Recurly's EU VAT
19566-
tax feature to determine taxation rules. If you have your own AvaTax or
19567-
Vertex account configured, use their tax codes to assign specific tax
19568-
rules. If you are using Recurly's EU VAT feature, you can use values of
19569-
`unknown`, `physical`, or `digital`.
1957019577
maxLength: 50
19578+
title: Tax code
19579+
description: Optional field used by Avalara, Vertex, and Recurly's In-the-Box
19580+
tax solution to determine taxation rules. You can pass in specific tax
19581+
codes using any of these tax integrations. For Recurly's In-the-Box tax
19582+
offering you can also choose to instead use simple values of `unknown`,
19583+
`physical`, or `digital` tax codes.
1957119584
tax_exempt:
1957219585
type: boolean
1957319586
title: Tax exempt?
@@ -20992,7 +21005,7 @@ components:
2099221005
type: string
2099321006
format: date-time
2099421007
title: Start date
20995-
description: If set, the subscription will begin in the future on this date.
21008+
description: If set, the subscription will begin on this specified date.
2099621009
The subscription will apply the setup fee and trial period, unless the
2099721010
plan has no trial.
2099821011
next_bill_date:
@@ -21080,6 +21093,12 @@ components:
2108021093
mail order and telephone transactions.
2108121094
enum:
2108221095
- moto
21096+
bulk:
21097+
type: boolean
21098+
description: Optional field to be used only when needing to bypass the 60
21099+
second limit on creating subscriptions. Should only be used when creating
21100+
subscriptions in bulk from the API.
21101+
default: false
2108321102
required:
2108421103
- plan_code
2108521104
- currency
@@ -21141,7 +21160,7 @@ components:
2114121160
type: string
2114221161
format: date-time
2114321162
title: Start date
21144-
description: If set, the subscription will begin in the future on this date.
21163+
description: If set, the subscription will begin on this specified date.
2114521164
The subscription will apply the setup fee and trial period, unless the
2114621165
plan has no trial.
2114721166
next_bill_date:
@@ -21187,6 +21206,12 @@ components:
2118721206
description: The new set of ramp intervals for the subscription.
2118821207
items:
2118921208
"$ref": "#/components/schemas/SubscriptionRampInterval"
21209+
bulk:
21210+
type: boolean
21211+
description: Optional field to be used only when needing to bypass the 60
21212+
second limit on creating subscriptions. Should only be used when creating
21213+
subscriptions in bulk from the API.
21214+
default: false
2119021215
required:
2119121216
- plan_code
2119221217
SubscriptionUpdate:

recurly/resources.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ class LineItem(Resource):
14521452
tax : float
14531453
The tax amount for the line item.
14541454
tax_code : str
1455-
Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
1455+
Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
14561456
tax_exempt : bool
14571457
`true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature.
14581458
tax_inclusive : bool
@@ -2187,7 +2187,7 @@ class Item(Resource):
21872187
state : str
21882188
The current state of the item.
21892189
tax_code : str
2190-
Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
2190+
Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
21912191
tax_exempt : bool
21922192
`true` exempts tax on the item, `false` applies tax on the item.
21932193
updated_at : datetime
@@ -2341,7 +2341,7 @@ class Plan(Resource):
23412341
state : str
23422342
The current state of the plan.
23432343
tax_code : str
2344-
Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
2344+
Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
23452345
tax_exempt : bool
23462346
`true` exempts tax on the plan, `false` applies tax on the plan.
23472347
total_billing_cycles : int
@@ -2512,7 +2512,7 @@ class AddOn(Resource):
25122512
state : str
25132513
Add-ons can be either active or inactive.
25142514
tax_code : str
2515-
Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
2515+
Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request then `tax_code` must be absent.
25162516
tier_type : str
25172517
The type of tiering used by the Add-on.
25182518
tiers : :obj:`list` of :obj:`Tier`

0 commit comments

Comments
 (0)