diff --git a/openapi/api.yaml b/openapi/api.yaml index 1ef0726..e606589 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -20934,6 +20934,8 @@ components: 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. + vertex_transaction_type: + "$ref": "#/components/schemas/VertexTransactionTypeEnum" required: - currency InvoiceCollect: @@ -21464,6 +21466,8 @@ components: Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types. minimum: 0 + vertex_transaction_type: + "$ref": "#/components/schemas/VertexTransactionTypeEnum" tax_code: type: string maxLength: 50 @@ -21719,6 +21723,8 @@ components: for more available t/s types. If an `Item` is associated to the `LineItem`, then the `avalara_service_type` must be absent. minimum: 0 + vertex_transaction_type: + "$ref": "#/components/schemas/VertexTransactionTypeEnum" tax_code: type: string maxLength: 50 @@ -25080,6 +25086,8 @@ components: type: string title: VAT reverse charge notes description: VAT reverse charge notes for cross border European tax settlement. + vertex_transaction_type: + "$ref": "#/components/schemas/VertexTransactionTypeEnum" credit_customer_notes: type: string title: Credit customer notes @@ -26496,6 +26504,11 @@ components: type: string description: 3-letter ISO 4217 currency code. maxLength: 3 + tax_service_opt_out: + title: Tax service opt-out + type: boolean + description: Set to `true` to bypass sending the purchase to your configured + tax service. Defaults to `false`. delivery: title: Delivery details description: The delivery details for the gift card. @@ -26760,6 +26773,15 @@ components: enum: - charge - credit + VertexTransactionTypeEnum: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are sale, + rental, lease. + enum: + - sale + - rental + - lease FilterTransactionTypeEnum: type: string enum: diff --git a/src/main/java/com/recurly/v3/Constants.java b/src/main/java/com/recurly/v3/Constants.java index f364f97..a844f8e 100644 --- a/src/main/java/com/recurly/v3/Constants.java +++ b/src/main/java/com/recurly/v3/Constants.java @@ -233,6 +233,20 @@ public enum LineItemType { }; + public enum VertexTransactionType { + UNDEFINED, + + @SerializedName("sale") + SALE, + + @SerializedName("rental") + RENTAL, + + @SerializedName("lease") + LEASE, + + }; + public enum FilterTransactionType { UNDEFINED, diff --git a/src/main/java/com/recurly/v3/requests/GiftCardCreate.java b/src/main/java/com/recurly/v3/requests/GiftCardCreate.java index f6986c8..9ece671 100644 --- a/src/main/java/com/recurly/v3/requests/GiftCardCreate.java +++ b/src/main/java/com/recurly/v3/requests/GiftCardCreate.java @@ -33,6 +33,14 @@ public class GiftCardCreate extends Request { @Expose private String productCode; + /** + * Set to `true` to bypass sending the purchase to your configured tax service. Defaults to + * `false`. + */ + @SerializedName("tax_service_opt_out") + @Expose + private Boolean taxServiceOptOut; + /** * The amount of the gift card, which is the amount of the charge to the gifter account and the * amount of credit that is applied to the recipient account upon successful redemption. @@ -84,6 +92,22 @@ public void setProductCode(final String productCode) { this.productCode = productCode; } + /** + * Set to `true` to bypass sending the purchase to your configured tax service. Defaults to + * `false`. + */ + public Boolean getTaxServiceOptOut() { + return this.taxServiceOptOut; + } + + /** + * @param taxServiceOptOut Set to `true` to bypass sending the purchase to your configured tax + * service. Defaults to `false`. + */ + public void setTaxServiceOptOut(final Boolean taxServiceOptOut) { + this.taxServiceOptOut = taxServiceOptOut; + } + /** * The amount of the gift card, which is the amount of the charge to the gifter account and the * amount of credit that is applied to the recipient account upon successful redemption. diff --git a/src/main/java/com/recurly/v3/requests/InvoiceCreate.java b/src/main/java/com/recurly/v3/requests/InvoiceCreate.java index 02bc2fe..ec71311 100644 --- a/src/main/java/com/recurly/v3/requests/InvoiceCreate.java +++ b/src/main/java/com/recurly/v3/requests/InvoiceCreate.java @@ -133,6 +133,11 @@ public class InvoiceCreate extends Request { @Expose private String vatReverseChargeNotes; + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + @SerializedName("vertex_transaction_type") + @Expose + private Constants.VertexTransactionType vertexTransactionType; + /** * The `business_entity_code` is the value that represents a specific business entity for an end * customer which will be assigned to the invoice. Available when the `Multiple Business Entities` @@ -375,4 +380,18 @@ public String getVatReverseChargeNotes() { public void setVatReverseChargeNotes(final String vatReverseChargeNotes) { this.vatReverseChargeNotes = vatReverseChargeNotes; } + + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + public Constants.VertexTransactionType getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale, + * rental, lease. + */ + public void setVertexTransactionType( + final Constants.VertexTransactionType vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } } diff --git a/src/main/java/com/recurly/v3/requests/LineItemCreate.java b/src/main/java/com/recurly/v3/requests/LineItemCreate.java index 3fad724..aae9615 100644 --- a/src/main/java/com/recurly/v3/requests/LineItemCreate.java +++ b/src/main/java/com/recurly/v3/requests/LineItemCreate.java @@ -243,6 +243,11 @@ public class LineItemCreate extends Request { @Expose private BigDecimal unitAmount; + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + @SerializedName("vertex_transaction_type") + @Expose + private Constants.VertexTransactionType vertexTransactionType; + /** * Accounting Code for the `LineItem`. If `item_code`/`item_id` is part of the request then * `accounting_code` must be absent. @@ -709,4 +714,18 @@ public BigDecimal getUnitAmount() { public void setUnitAmount(final BigDecimal unitAmount) { this.unitAmount = unitAmount; } + + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + public Constants.VertexTransactionType getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale, + * rental, lease. + */ + public void setVertexTransactionType( + final Constants.VertexTransactionType vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } } diff --git a/src/main/java/com/recurly/v3/requests/PurchaseCreate.java b/src/main/java/com/recurly/v3/requests/PurchaseCreate.java index b732cc8..73efeae 100644 --- a/src/main/java/com/recurly/v3/requests/PurchaseCreate.java +++ b/src/main/java/com/recurly/v3/requests/PurchaseCreate.java @@ -181,6 +181,11 @@ public class PurchaseCreate extends Request { @Expose private String vatReverseChargeNotes; + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + @SerializedName("vertex_transaction_type") + @Expose + private Constants.VertexTransactionType vertexTransactionType; + public AccountPurchase getAccount() { return this.account; } @@ -530,4 +535,18 @@ public String getVatReverseChargeNotes() { public void setVatReverseChargeNotes(final String vatReverseChargeNotes) { this.vatReverseChargeNotes = vatReverseChargeNotes; } + + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + public Constants.VertexTransactionType getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale, + * rental, lease. + */ + public void setVertexTransactionType( + final Constants.VertexTransactionType vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } } diff --git a/src/main/java/com/recurly/v3/resources/LineItem.java b/src/main/java/com/recurly/v3/resources/LineItem.java index 63e9b56..6c71d11 100644 --- a/src/main/java/com/recurly/v3/resources/LineItem.java +++ b/src/main/java/com/recurly/v3/resources/LineItem.java @@ -423,6 +423,11 @@ public class LineItem extends Resource { @Expose private String uuid; + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + @SerializedName("vertex_transaction_type") + @Expose + private Constants.VertexTransactionType vertexTransactionType; + /** Account mini details */ public AccountMini getAccount() { return this.account; @@ -1270,4 +1275,18 @@ public String getUuid() { public void setUuid(final String uuid) { this.uuid = uuid; } + + /** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */ + public Constants.VertexTransactionType getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale, + * rental, lease. + */ + public void setVertexTransactionType( + final Constants.VertexTransactionType vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } }