diff --git a/openapi/api.yaml b/openapi/api.yaml index f649648..0e0dbda 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -23040,6 +23040,13 @@ components: payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort. title: Action result + vat_number: + type: string + description: VAT number for the customer on this transaction. If the customer's + Billing Info country is BR or AR, then this will be their Tax Identifier. + For all other countries this will come from the VAT Number field in the + Billing Info. + title: VAT Number ExternalTransaction: type: object properties: @@ -25336,6 +25343,7 @@ components: - invalid_payment_method_hard - invalid_transaction - issuer_unavailable + - lifecycle_decline - merch_max_transaction_limit_exceeded - moneybot_disconnect - moneybot_unavailable diff --git a/transaction.go b/transaction.go index 18dc7da..d05cfd0 100644 --- a/transaction.go +++ b/transaction.go @@ -133,6 +133,9 @@ type Transaction struct { // Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort. ActionResult map[string]interface{} `json:"action_result,omitempty"` + + // VAT number for the customer on this transaction. If the customer's Billing Info country is BR or AR, then this will be their Tax Identifier. For all other countries this will come from the VAT Number field in the Billing Info. + VatNumber string `json:"vat_number,omitempty"` } // GetResponse returns the ResponseMetadata that generated this resource