From d3b80aac781e67071f21e43c3d020d5ff48dc39f Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Mon, 2 Dec 2024 18:35:37 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 15 +++++++++++++++ .../com/recurly/v3/requests/PlanCreate.java | 18 ++++++++++++++++++ .../com/recurly/v3/requests/PlanUpdate.java | 18 ++++++++++++++++++ .../java/com/recurly/v3/resources/Plan.java | 18 ++++++++++++++++++ 4 files changed, 69 insertions(+) diff --git a/openapi/api.yaml b/openapi/api.yaml index b8cfb55..bcad8e3 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -21353,6 +21353,11 @@ components: title: Tax exempt? description: "`true` exempts tax on the plan, `false` applies tax on the plan." + vertex_transaction_type: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are `sale`, + `rental`, `lease`. currencies: type: array title: Pricing @@ -21568,6 +21573,11 @@ components: title: Tax exempt? description: "`true` exempts tax on the plan, `false` applies tax on the plan." + vertex_transaction_type: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are `sale`, + `rental`, `lease`. currencies: type: array title: Pricing @@ -21832,6 +21842,11 @@ components: title: Tax exempt? description: "`true` exempts tax on the plan, `false` applies tax on the plan." + vertex_transaction_type: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are `sale`, + `rental`, `lease`. currencies: type: array title: Pricing diff --git a/src/main/java/com/recurly/v3/requests/PlanCreate.java b/src/main/java/com/recurly/v3/requests/PlanCreate.java index b1326a1..59a7dcc 100644 --- a/src/main/java/com/recurly/v3/requests/PlanCreate.java +++ b/src/main/java/com/recurly/v3/requests/PlanCreate.java @@ -243,6 +243,11 @@ public class PlanCreate extends Request { @Expose private Constants.IntervalUnit trialUnit; + /** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ + @SerializedName("vertex_transaction_type") + @Expose + private String vertexTransactionType; + /** * Accounting code for invoice line items for the plan. If no value is provided, it defaults to * plan's code. @@ -710,4 +715,17 @@ public Constants.IntervalUnit getTrialUnit() { public void setTrialUnit(final Constants.IntervalUnit trialUnit) { this.trialUnit = trialUnit; } + + /** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ + public String getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are `sale`, + * `rental`, `lease`. + */ + public void setVertexTransactionType(final String vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } } diff --git a/src/main/java/com/recurly/v3/requests/PlanUpdate.java b/src/main/java/com/recurly/v3/requests/PlanUpdate.java index 1df2d84..835d22f 100644 --- a/src/main/java/com/recurly/v3/requests/PlanUpdate.java +++ b/src/main/java/com/recurly/v3/requests/PlanUpdate.java @@ -224,6 +224,11 @@ public class PlanUpdate extends Request { @Expose private Constants.IntervalUnit trialUnit; + /** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ + @SerializedName("vertex_transaction_type") + @Expose + private String vertexTransactionType; + /** * Accounting code for invoice line items for the plan. If no value is provided, it defaults to * plan's code. @@ -653,4 +658,17 @@ public Constants.IntervalUnit getTrialUnit() { public void setTrialUnit(final Constants.IntervalUnit trialUnit) { this.trialUnit = trialUnit; } + + /** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ + public String getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are `sale`, + * `rental`, `lease`. + */ + public void setVertexTransactionType(final String vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } } diff --git a/src/main/java/com/recurly/v3/resources/Plan.java b/src/main/java/com/recurly/v3/resources/Plan.java index 6dd751d..0a25552 100644 --- a/src/main/java/com/recurly/v3/resources/Plan.java +++ b/src/main/java/com/recurly/v3/resources/Plan.java @@ -224,6 +224,11 @@ public class Plan extends Resource { @Expose private DateTime updatedAt; + /** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ + @SerializedName("vertex_transaction_type") + @Expose + private String vertexTransactionType; + /** * Accounting code for invoice line items for the plan. If no value is provided, it defaults to * plan's code. @@ -645,4 +650,17 @@ public DateTime getUpdatedAt() { public void setUpdatedAt(final DateTime updatedAt) { this.updatedAt = updatedAt; } + + /** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ + public String getVertexTransactionType() { + return this.vertexTransactionType; + } + + /** + * @param vertexTransactionType Used by Vertex for tax calculations. Possible values are `sale`, + * `rental`, `lease`. + */ + public void setVertexTransactionType(final String vertexTransactionType) { + this.vertexTransactionType = vertexTransactionType; + } }