Skip to content

Commit 72eb799

Browse files
authored
Merge pull request #314 from recurly/v3-v2021-02-25-20108434005
Generated Latest Changes for v2021-02-25
2 parents fff156b + 28acc11 commit 72eb799

7 files changed

Lines changed: 136 additions & 0 deletions

File tree

openapi/api.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20934,6 +20934,8 @@ components:
2093420934
will default to the VAT Reverse Charge Notes text specified on the Tax
2093520935
Settings page in your Recurly admin, unless custom notes were created
2093620936
with the original subscription.
20937+
vertex_transaction_type:
20938+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2093720939
required:
2093820940
- currency
2093920941
InvoiceCollect:
@@ -21464,6 +21466,8 @@ components:
2146421466
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)
2146521467
for more available t/s types.
2146621468
minimum: 0
21469+
vertex_transaction_type:
21470+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2146721471
tax_code:
2146821472
type: string
2146921473
maxLength: 50
@@ -21719,6 +21723,8 @@ components:
2171921723
for more available t/s types. If an `Item` is associated to the `LineItem`,
2172021724
then the `avalara_service_type` must be absent.
2172121725
minimum: 0
21726+
vertex_transaction_type:
21727+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2172221728
tax_code:
2172321729
type: string
2172421730
maxLength: 50
@@ -25080,6 +25086,8 @@ components:
2508025086
type: string
2508125087
title: VAT reverse charge notes
2508225088
description: VAT reverse charge notes for cross border European tax settlement.
25089+
vertex_transaction_type:
25090+
"$ref": "#/components/schemas/VertexTransactionTypeEnum"
2508325091
credit_customer_notes:
2508425092
type: string
2508525093
title: Credit customer notes
@@ -26496,6 +26504,11 @@ components:
2649626504
type: string
2649726505
description: 3-letter ISO 4217 currency code.
2649826506
maxLength: 3
26507+
tax_service_opt_out:
26508+
title: Tax service opt-out
26509+
type: boolean
26510+
description: Set to `true` to bypass sending the purchase to your configured
26511+
tax service. Defaults to `false`.
2649926512
delivery:
2650026513
title: Delivery details
2650126514
description: The delivery details for the gift card.
@@ -26760,6 +26773,15 @@ components:
2676026773
enum:
2676126774
- charge
2676226775
- credit
26776+
VertexTransactionTypeEnum:
26777+
type: string
26778+
title: Vertex Transaction Type
26779+
description: Used by Vertex for tax calculations. Possible values are sale,
26780+
rental, lease.
26781+
enum:
26782+
- sale
26783+
- rental
26784+
- lease
2676326785
FilterTransactionTypeEnum:
2676426786
type: string
2676526787
enum:

src/main/java/com/recurly/v3/Constants.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,20 @@ public enum LineItemType {
233233

234234
};
235235

236+
public enum VertexTransactionType {
237+
UNDEFINED,
238+
239+
@SerializedName("sale")
240+
SALE,
241+
242+
@SerializedName("rental")
243+
RENTAL,
244+
245+
@SerializedName("lease")
246+
LEASE,
247+
248+
};
249+
236250
public enum FilterTransactionType {
237251
UNDEFINED,
238252

src/main/java/com/recurly/v3/requests/GiftCardCreate.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ public class GiftCardCreate extends Request {
3333
@Expose
3434
private String productCode;
3535

36+
/**
37+
* Set to `true` to bypass sending the purchase to your configured tax service. Defaults to
38+
* `false`.
39+
*/
40+
@SerializedName("tax_service_opt_out")
41+
@Expose
42+
private Boolean taxServiceOptOut;
43+
3644
/**
3745
* The amount of the gift card, which is the amount of the charge to the gifter account and the
3846
* amount of credit that is applied to the recipient account upon successful redemption.
@@ -84,6 +92,22 @@ public void setProductCode(final String productCode) {
8492
this.productCode = productCode;
8593
}
8694

95+
/**
96+
* Set to `true` to bypass sending the purchase to your configured tax service. Defaults to
97+
* `false`.
98+
*/
99+
public Boolean getTaxServiceOptOut() {
100+
return this.taxServiceOptOut;
101+
}
102+
103+
/**
104+
* @param taxServiceOptOut Set to `true` to bypass sending the purchase to your configured tax
105+
* service. Defaults to `false`.
106+
*/
107+
public void setTaxServiceOptOut(final Boolean taxServiceOptOut) {
108+
this.taxServiceOptOut = taxServiceOptOut;
109+
}
110+
87111
/**
88112
* The amount of the gift card, which is the amount of the charge to the gifter account and the
89113
* amount of credit that is applied to the recipient account upon successful redemption.

src/main/java/com/recurly/v3/requests/InvoiceCreate.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ public class InvoiceCreate extends Request {
133133
@Expose
134134
private String vatReverseChargeNotes;
135135

136+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
137+
@SerializedName("vertex_transaction_type")
138+
@Expose
139+
private Constants.VertexTransactionType vertexTransactionType;
140+
136141
/**
137142
* The `business_entity_code` is the value that represents a specific business entity for an end
138143
* customer which will be assigned to the invoice. Available when the `Multiple Business Entities`
@@ -375,4 +380,18 @@ public String getVatReverseChargeNotes() {
375380
public void setVatReverseChargeNotes(final String vatReverseChargeNotes) {
376381
this.vatReverseChargeNotes = vatReverseChargeNotes;
377382
}
383+
384+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
385+
public Constants.VertexTransactionType getVertexTransactionType() {
386+
return this.vertexTransactionType;
387+
}
388+
389+
/**
390+
* @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale,
391+
* rental, lease.
392+
*/
393+
public void setVertexTransactionType(
394+
final Constants.VertexTransactionType vertexTransactionType) {
395+
this.vertexTransactionType = vertexTransactionType;
396+
}
378397
}

src/main/java/com/recurly/v3/requests/LineItemCreate.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ public class LineItemCreate extends Request {
243243
@Expose
244244
private BigDecimal unitAmount;
245245

246+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
247+
@SerializedName("vertex_transaction_type")
248+
@Expose
249+
private Constants.VertexTransactionType vertexTransactionType;
250+
246251
/**
247252
* Accounting Code for the `LineItem`. If `item_code`/`item_id` is part of the request then
248253
* `accounting_code` must be absent.
@@ -709,4 +714,18 @@ public BigDecimal getUnitAmount() {
709714
public void setUnitAmount(final BigDecimal unitAmount) {
710715
this.unitAmount = unitAmount;
711716
}
717+
718+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
719+
public Constants.VertexTransactionType getVertexTransactionType() {
720+
return this.vertexTransactionType;
721+
}
722+
723+
/**
724+
* @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale,
725+
* rental, lease.
726+
*/
727+
public void setVertexTransactionType(
728+
final Constants.VertexTransactionType vertexTransactionType) {
729+
this.vertexTransactionType = vertexTransactionType;
730+
}
712731
}

src/main/java/com/recurly/v3/requests/PurchaseCreate.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ public class PurchaseCreate extends Request {
181181
@Expose
182182
private String vatReverseChargeNotes;
183183

184+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
185+
@SerializedName("vertex_transaction_type")
186+
@Expose
187+
private Constants.VertexTransactionType vertexTransactionType;
188+
184189
public AccountPurchase getAccount() {
185190
return this.account;
186191
}
@@ -530,4 +535,18 @@ public String getVatReverseChargeNotes() {
530535
public void setVatReverseChargeNotes(final String vatReverseChargeNotes) {
531536
this.vatReverseChargeNotes = vatReverseChargeNotes;
532537
}
538+
539+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
540+
public Constants.VertexTransactionType getVertexTransactionType() {
541+
return this.vertexTransactionType;
542+
}
543+
544+
/**
545+
* @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale,
546+
* rental, lease.
547+
*/
548+
public void setVertexTransactionType(
549+
final Constants.VertexTransactionType vertexTransactionType) {
550+
this.vertexTransactionType = vertexTransactionType;
551+
}
533552
}

src/main/java/com/recurly/v3/resources/LineItem.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ public class LineItem extends Resource {
423423
@Expose
424424
private String uuid;
425425

426+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
427+
@SerializedName("vertex_transaction_type")
428+
@Expose
429+
private Constants.VertexTransactionType vertexTransactionType;
430+
426431
/** Account mini details */
427432
public AccountMini getAccount() {
428433
return this.account;
@@ -1270,4 +1275,18 @@ public String getUuid() {
12701275
public void setUuid(final String uuid) {
12711276
this.uuid = uuid;
12721277
}
1278+
1279+
/** Used by Vertex for tax calculations. Possible values are sale, rental, lease. */
1280+
public Constants.VertexTransactionType getVertexTransactionType() {
1281+
return this.vertexTransactionType;
1282+
}
1283+
1284+
/**
1285+
* @param vertexTransactionType Used by Vertex for tax calculations. Possible values are sale,
1286+
* rental, lease.
1287+
*/
1288+
public void setVertexTransactionType(
1289+
final Constants.VertexTransactionType vertexTransactionType) {
1290+
this.vertexTransactionType = vertexTransactionType;
1291+
}
12731292
}

0 commit comments

Comments
 (0)