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
15 changes: 15 additions & 0 deletions Recurly/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,21 @@ public enum LineItemType

};

public enum VertexTransactionType
{
Undefined = 0,

[EnumMember(Value = "sale")]
Sale,

[EnumMember(Value = "rental")]
Rental,

[EnumMember(Value = "lease")]
Lease,

};

public enum FilterTransactionType
{
Undefined = 0,
Expand Down
4 changes: 4 additions & 0 deletions Recurly/Resources/GiftCardCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class GiftCardCreate : Request
[JsonProperty("product_code")]
public string ProductCode { get; set; }

/// <value>Set to `true` to bypass sending the purchase to your configured tax service. Defaults to `false`.</value>
[JsonProperty("tax_service_opt_out")]
public bool? TaxServiceOptOut { get; set; }

/// <value>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.</value>
[JsonProperty("unit_amount")]
public decimal? UnitAmount { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions Recurly/Resources/InvoiceCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,10 @@ public class InvoiceCreate : Request
[JsonProperty("vat_reverse_charge_notes")]
public string VatReverseChargeNotes { get; set; }

/// <value>Used by Vertex for tax calculations. Possible values are sale, rental, lease.</value>
[JsonProperty("vertex_transaction_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.VertexTransactionType? VertexTransactionType { get; set; }

}
}
5 changes: 5 additions & 0 deletions Recurly/Resources/LineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,10 @@ public class LineItem : Resource
[JsonProperty("uuid")]
public string Uuid { get; set; }

/// <value>Used by Vertex for tax calculations. Possible values are sale, rental, lease.</value>
[JsonProperty("vertex_transaction_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.VertexTransactionType? VertexTransactionType { get; set; }

}
}
5 changes: 5 additions & 0 deletions Recurly/Resources/LineItemCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,10 @@ public class LineItemCreate : Request
[JsonProperty("unit_amount")]
public decimal? UnitAmount { get; set; }

/// <value>Used by Vertex for tax calculations. Possible values are sale, rental, lease.</value>
[JsonProperty("vertex_transaction_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.VertexTransactionType? VertexTransactionType { get; set; }

}
}
5 changes: 5 additions & 0 deletions Recurly/Resources/PurchaseCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,10 @@ public class PurchaseCreate : Request
[JsonProperty("vat_reverse_charge_notes")]
public string VatReverseChargeNotes { get; set; }

/// <value>Used by Vertex for tax calculations. Possible values are sale, rental, lease.</value>
[JsonProperty("vertex_transaction_type")]
[JsonConverter(typeof(RecurlyStringEnumConverter))]
public Constants.VertexTransactionType? VertexTransactionType { get; set; }

}
}
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
Loading