Skip to content

Commit 1e1e97a

Browse files
authored
Merge pull request #713 from recurly/v3-v2021-02-25-13862853795
Generated Latest Changes for v2021-02-25
2 parents 26c4f60 + a675b4c commit 1e1e97a

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

openapi/api.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20276,6 +20276,8 @@ components:
2027620276
format: float
2027720277
title: Tax
2027820278
description: The total tax on this invoice.
20279+
reference_only_currency_conversion:
20280+
"$ref": "#/components/schemas/ReferenceOnlyCurrencyConversion"
2027920281
total:
2028020282
type: number
2028120283
format: float
@@ -22289,6 +22291,25 @@ components:
2228922291
title: Updated at
2229022292
format: date-time
2229122293
readOnly: true
22294+
ReferenceOnlyCurrencyConversion:
22295+
type: object
22296+
title: Reference Only Currency Conversion
22297+
properties:
22298+
currency:
22299+
type: string
22300+
title: Currency
22301+
description: 3-letter ISO 4217 currency code.
22302+
maxLength: 3
22303+
subtotal_in_cents:
22304+
type: number
22305+
format: float
22306+
title: Subtotal In Cents
22307+
description: The subtotal converted to the currency.
22308+
tax_in_cents:
22309+
type: number
22310+
format: float
22311+
title: Tax In Cents
22312+
description: The tax converted to the currency.
2229222313
ShippingAddressCreate:
2229322314
type: object
2229422315
properties:

recurly/resources.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,8 @@ class Invoice(Resource):
15911591
For manual invoicing, this identifies the PO number associated with the subscription.
15921592
previous_invoice_id : str
15931593
On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from. This field is only populated for sites without the [Only Bill What Changed](https://docs.recurly.com/docs/only-bill-what-changed) feature enabled. Sites with Only Bill What Changed enabled should use the [related_invoices endpoint](https://recurly.com/developers/api/v2021-02-25/index.html#operation/list_related_invoices) to see purchase invoices refunded by this invoice.
1594+
reference_only_currency_conversion : ReferenceOnlyCurrencyConversion
1595+
Reference Only Currency Conversion
15941596
refundable_amount : float
15951597
The refundable amount on a charge invoice. It will be null for all other invoices.
15961598
shipping_address : ShippingAddress
@@ -1652,6 +1654,7 @@ class Invoice(Resource):
16521654
"paid": float,
16531655
"po_number": str,
16541656
"previous_invoice_id": str,
1657+
"reference_only_currency_conversion": "ReferenceOnlyCurrencyConversion",
16551658
"refundable_amount": float,
16561659
"shipping_address": "ShippingAddress",
16571660
"state": str,
@@ -1717,6 +1720,25 @@ class InvoiceAddress(Resource):
17171720
}
17181721

17191722

1723+
class ReferenceOnlyCurrencyConversion(Resource):
1724+
"""
1725+
Attributes
1726+
----------
1727+
currency : str
1728+
3-letter ISO 4217 currency code.
1729+
subtotal_in_cents : float
1730+
The subtotal converted to the currency.
1731+
tax_in_cents : float
1732+
The tax converted to the currency.
1733+
"""
1734+
1735+
schema = {
1736+
"currency": str,
1737+
"subtotal_in_cents": float,
1738+
"tax_in_cents": float,
1739+
}
1740+
1741+
17201742
class TaxInfo(Resource):
17211743
"""
17221744
Attributes

0 commit comments

Comments
 (0)