Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20276,6 +20276,8 @@ components:
format: float
title: Tax
description: The total tax on this invoice.
reference_only_currency_conversion:
"$ref": "#/components/schemas/ReferenceOnlyCurrencyConversion"
total:
type: number
format: float
Expand Down Expand Up @@ -22289,6 +22291,25 @@ components:
title: Updated at
format: date-time
readOnly: true
ReferenceOnlyCurrencyConversion:
type: object
title: Reference Only Currency Conversion
properties:
currency:
type: string
title: Currency
description: 3-letter ISO 4217 currency code.
maxLength: 3
subtotal_in_cents:
type: number
format: float
title: Subtotal In Cents
description: The subtotal converted to the currency.
tax_in_cents:
type: number
format: float
title: Tax In Cents
description: The tax converted to the currency.
ShippingAddressCreate:
type: object
properties:
Expand Down
22 changes: 22 additions & 0 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,8 @@ class Invoice(Resource):
For manual invoicing, this identifies the PO number associated with the subscription.
previous_invoice_id : str
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.
reference_only_currency_conversion : ReferenceOnlyCurrencyConversion
Reference Only Currency Conversion
refundable_amount : float
The refundable amount on a charge invoice. It will be null for all other invoices.
shipping_address : ShippingAddress
Expand Down Expand Up @@ -1652,6 +1654,7 @@ class Invoice(Resource):
"paid": float,
"po_number": str,
"previous_invoice_id": str,
"reference_only_currency_conversion": "ReferenceOnlyCurrencyConversion",
"refundable_amount": float,
"shipping_address": "ShippingAddress",
"state": str,
Expand Down Expand Up @@ -1717,6 +1720,25 @@ class InvoiceAddress(Resource):
}


class ReferenceOnlyCurrencyConversion(Resource):
"""
Attributes
----------
currency : str
3-letter ISO 4217 currency code.
subtotal_in_cents : float
The subtotal converted to the currency.
tax_in_cents : float
The tax converted to the currency.
"""

schema = {
"currency": str,
"subtotal_in_cents": float,
"tax_in_cents": float,
}


class TaxInfo(Resource):
"""
Attributes
Expand Down
Loading