From a675b4cf93bb0920052fc61b330b1bb48c4f2f47 Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Fri, 14 Mar 2025 18:20:25 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 21 +++++++++++++++++++++ recurly/resources.py | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/openapi/api.yaml b/openapi/api.yaml index f9c6768e..28a59b34 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -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 @@ -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: diff --git a/recurly/resources.py b/recurly/resources.py index b481cacc..7c5230b8 100644 --- a/recurly/resources.py +++ b/recurly/resources.py @@ -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 @@ -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, @@ -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