Skip to content

Commit

Permalink
Merge pull request #302 from recurly/v3-v2021-02-25-1682540411
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25
  • Loading branch information
judith authored Apr 26, 2023
2 parents 63a5fe3 + 534a88a commit 4637cbc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,10 @@ export declare class Invoice {
* Tax info
*/
taxInfo?: TaxInfo | null;
/**
* Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.
*/
usedTaxService?: boolean | null;
/**
* VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/recurly/resources/Invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const Resource = require('../Resource')
* @prop {Array.<Transaction>} transactions - Transactions
* @prop {string} type - Invoices are either charge, credit, or legacy invoices.
* @prop {Date} updatedAt - Last updated at
* @prop {boolean} usedTaxService - Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.
* @prop {string} uuid - Invoice UUID
* @prop {string} vatNumber - VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.
* @prop {string} vatReverseChargeNotes - VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.
Expand Down Expand Up @@ -93,6 +94,7 @@ class Invoice extends Resource {
transactions: ['Transaction'],
type: String,
updatedAt: Date,
usedTaxService: Boolean,
uuid: String,
vatNumber: String,
vatReverseChargeNotes: String
Expand Down
9 changes: 9 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19032,6 +19032,13 @@ components:
description: The outstanding balance remaining on this invoice.
tax_info:
"$ref": "#/components/schemas/TaxInfo"
used_tax_service:
type: boolean
title: Used Tax Service?
description: Will be `true` when the invoice had a successful response from
the tax service and `false` when the invoice was not sent to tax service
due to a lack of address or enabled jurisdiction or was processed without
tax due to a non-blocking error returned from the tax service.
vat_number:
type: string
title: VAT number
Expand Down Expand Up @@ -24043,7 +24050,9 @@ components:
- es-MX
- es-US
- fi-FI
- fr-BE
- fr-CA
- fr-CH
- fr-FR
- hi-IN
- it-IT
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4637cbc

Please sign in to comment.