Skip to content

Commit

Permalink
Merge pull request #255 from recurly/v3-v2021-02-25-6004207465
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25 (`VATNumber`, `LifecycleDecline`)
  • Loading branch information
bdoring authored Aug 28, 2023
2 parents 259bb9d + b1193ef commit c791db7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23040,6 +23040,13 @@ components:
payment when using asynchronous payment methods, e.g., Boleto, iDEAL and
Sofort.
title: Action result
vat_number:
type: string
description: VAT number for the customer on this transaction. If the customer's
Billing Info country is BR or AR, then this will be their Tax Identifier.
For all other countries this will come from the VAT Number field in the
Billing Info.
title: VAT Number
ExternalTransaction:
type: object
properties:
Expand Down Expand Up @@ -25336,6 +25343,7 @@ components:
- invalid_payment_method_hard
- invalid_transaction
- issuer_unavailable
- lifecycle_decline
- merch_max_transaction_limit_exceeded
- moneybot_disconnect
- moneybot_unavailable
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,9 @@ public enum ErrorCode {
@SerializedName("issuer_unavailable")
ISSUER_UNAVAILABLE,

@SerializedName("lifecycle_decline")
LIFECYCLE_DECLINE,

@SerializedName("merch_max_transaction_limit_exceeded")
MERCH_MAX_TRANSACTION_LIMIT_EXCEEDED,

Expand Down
27 changes: 27 additions & 0 deletions src/main/java/com/recurly/v3/resources/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ public class Transaction extends Resource {
@Expose
private String uuid;

/**
* VAT number for the customer on this transaction. If the customer's Billing Info country is BR
* or AR, then this will be their Tax Identifier. For all other countries this will come from the
* VAT Number field in the Billing Info.
*/
@SerializedName("vat_number")
@Expose
private String vatNumber;

/** Voided at */
@SerializedName("voided_at")
@Expose
Expand Down Expand Up @@ -672,6 +681,24 @@ public void setUuid(final String uuid) {
this.uuid = uuid;
}

/**
* VAT number for the customer on this transaction. If the customer's Billing Info country is BR
* or AR, then this will be their Tax Identifier. For all other countries this will come from the
* VAT Number field in the Billing Info.
*/
public String getVatNumber() {
return this.vatNumber;
}

/**
* @param vatNumber VAT number for the customer on this transaction. If the customer's Billing
* Info country is BR or AR, then this will be their Tax Identifier. For all other countries
* this will come from the VAT Number field in the Billing Info.
*/
public void setVatNumber(final String vatNumber) {
this.vatNumber = vatNumber;
}

/** Voided at */
public DateTime getVoidedAt() {
return this.voidedAt;
Expand Down

0 comments on commit c791db7

Please sign in to comment.