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
22 changes: 22 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ public enum LineItemType {

};

public enum VertexTransactionType {
UNDEFINED,

@SerializedName("sale")
SALE,

@SerializedName("rental")
RENTAL,

@SerializedName("lease")
LEASE,

};

public enum FilterTransactionType {
UNDEFINED,

Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/recurly/v3/requests/GiftCardCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/recurly/v3/requests/InvoiceCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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;
}
}
19 changes: 19 additions & 0 deletions src/main/java/com/recurly/v3/requests/LineItemCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}
}
19 changes: 19 additions & 0 deletions src/main/java/com/recurly/v3/requests/PurchaseCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}
19 changes: 19 additions & 0 deletions src/main/java/com/recurly/v3/resources/LineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
Loading