From e294b1851c4539b17ce6c38304ca3934e2d2b8eb Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Mon, 3 Nov 2025 22:15:56 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 38 ++++++++++++++-- src/main/java/com/recurly/v3/Constants.java | 29 ++++++++++++ .../v3/requests/BillingInfoCreate.java | 12 ++--- .../v3/requests/SubscriptionCreate.java | 17 +++++-- .../com/recurly/v3/resources/Transaction.java | 24 ++++++++++ .../v3/resources/TransactionNextAction.java | 44 +++++++++++++++++++ 6 files changed, 151 insertions(+), 13 deletions(-) create mode 100644 src/main/java/com/recurly/v3/resources/TransactionNextAction.java diff --git a/openapi/api.yaml b/openapi/api.yaml index 8d3bcf3..2a1ddee 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -18373,9 +18373,11 @@ components: street1: type: string title: Street 1 + maxLength: 50 street2: type: string title: Street 2 + maxLength: 50 city: type: string title: City @@ -23977,8 +23979,10 @@ components: gateway_code: type: string title: Gateway Code - description: If present, this subscription's transactions will use the payment - gateway with this code. + description: If present, this subscription's subsequent transactions will + use the payment gateway with this code. To select a payment gateway to + use when creating a Subscription, be sure to set the `account.billing_info.gateway_code` + as well. maxLength: 13 transaction_type: description: An optional type designation for the payment gateway transaction @@ -24634,6 +24638,22 @@ components: title: VAT Number fraud_info: "$ref": "#/components/schemas/TransactionFraudInfo" + next_action: + type: object + x-class-name: TransactionNextAction + description: Next action values are used for any required customer follow-up + action. Currently, this is supported for Ebanx when using Pix Automatico. + properties: + type: + type: string + title: Next action type + description: The type of next action required. + "$ref": "#/components/schemas/NextActionTypeEnum" + value: + type: string + title: Next action value + description: The value associated with the next action type. + title: Next action TransactionFraudInfo: type: object title: Fraud information @@ -27043,9 +27063,11 @@ components: - credit_card - eft - google_pay + - mercadopago - money_order - other - paypal + - pix_automatico - roku - sepadirectdebit - wire_transfer @@ -27183,6 +27205,11 @@ components: - scheduled - success - void + NextActionTypeEnum: + type: string + description: The type of next action required for the transaction. + enum: + - qr_code CvvCheckEnum: type: string enum: @@ -27259,6 +27286,9 @@ components: - boleto - cash_app - upi_autopay + - pix_automatico + - mercadopago + - klarna CardTypeEnum: type: string enum: @@ -27584,10 +27614,12 @@ components: AchTypeEnum: type: string description: The payment method type for a non-credit card based billing info. - `bacs` and `becs` are the only accepted values. + `bacs`, `becs`, `pix-automatico`, `mercadopago` are the only accepted values. enum: - bacs - becs + - pix-automatico + - mercadopago AchAccountTypeEnum: type: string description: The bank account type. (ACH only) diff --git a/src/main/java/com/recurly/v3/Constants.java b/src/main/java/com/recurly/v3/Constants.java index 50a4334..d54df18 100644 --- a/src/main/java/com/recurly/v3/Constants.java +++ b/src/main/java/com/recurly/v3/Constants.java @@ -923,6 +923,9 @@ public enum ExternalPaymentMethod { @SerializedName("google_pay") GOOGLE_PAY, + @SerializedName("mercadopago") + MERCADOPAGO, + @SerializedName("money_order") MONEY_ORDER, @@ -932,6 +935,9 @@ public enum ExternalPaymentMethod { @SerializedName("paypal") PAYPAL, + @SerializedName("pix_automatico") + PIX_AUTOMATICO, + @SerializedName("roku") ROKU, @@ -1281,6 +1287,14 @@ public enum TransactionStatus { }; + public enum NextActionType { + UNDEFINED, + + @SerializedName("qr_code") + QR_CODE, + + }; + public enum CvvCheck { UNDEFINED, @@ -1491,6 +1505,15 @@ public enum PaymentMethod { @SerializedName("upi_autopay") UPI_AUTOPAY, + @SerializedName("pix_automatico") + PIX_AUTOMATICO, + + @SerializedName("mercadopago") + MERCADOPAGO, + + @SerializedName("klarna") + KLARNA, + }; public enum CardType { @@ -2311,6 +2334,12 @@ public enum AchType { @SerializedName("becs") BECS, + @SerializedName("pix-automatico") + PIX_AUTOMATICO, + + @SerializedName("mercadopago") + MERCADOPAGO, + }; public enum AchAccountType { diff --git a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java index d70054f..69fbb3b 100644 --- a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java +++ b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java @@ -248,8 +248,8 @@ public class BillingInfoCreate extends Request { private Constants.GatewayTransactionType transactionType; /** - * The payment method type for a non-credit card based billing info. `bacs` and `becs` are the - * only accepted values. + * The payment method type for a non-credit card based billing info. `bacs`, `becs`, + * `pix-automatico`, `mercadopago` are the only accepted values. */ @SerializedName("type") @Expose @@ -750,16 +750,16 @@ public void setTransactionType(final Constants.GatewayTransactionType transactio } /** - * The payment method type for a non-credit card based billing info. `bacs` and `becs` are the - * only accepted values. + * The payment method type for a non-credit card based billing info. `bacs`, `becs`, + * `pix-automatico`, `mercadopago` are the only accepted values. */ public Constants.AchType getType() { return this.type; } /** - * @param type The payment method type for a non-credit card based billing info. `bacs` and `becs` - * are the only accepted values. + * @param type The payment method type for a non-credit card based billing info. `bacs`, `becs`, + * `pix-automatico`, `mercadopago` are the only accepted values. */ public void setType(final Constants.AchType type) { this.type = type; diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java index 43b2b39..a8d362e 100644 --- a/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java +++ b/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java @@ -111,7 +111,11 @@ public class SubscriptionCreate extends Request { @Expose private String customerNotes; - /** If present, this subscription's transactions will use the payment gateway with this code. */ + /** + * If present, this subscription's subsequent transactions will use the payment gateway with this + * code. To select a payment gateway to use when creating a Subscription, be sure to set the + * `account.billing_info.gateway_code` as well. + */ @SerializedName("gateway_code") @Expose private String gatewayCode; @@ -487,14 +491,19 @@ public void setCustomerNotes(final String customerNotes) { this.customerNotes = customerNotes; } - /** If present, this subscription's transactions will use the payment gateway with this code. */ + /** + * If present, this subscription's subsequent transactions will use the payment gateway with this + * code. To select a payment gateway to use when creating a Subscription, be sure to set the + * `account.billing_info.gateway_code` as well. + */ public String getGatewayCode() { return this.gatewayCode; } /** - * @param gatewayCode If present, this subscription's transactions will use the payment gateway - * with this code. + * @param gatewayCode If present, this subscription's subsequent transactions will use the payment + * gateway with this code. To select a payment gateway to use when creating a Subscription, be + * sure to set the `account.billing_info.gateway_code` as well. */ public void setGatewayCode(final String gatewayCode) { this.gatewayCode = gatewayCode; diff --git a/src/main/java/com/recurly/v3/resources/Transaction.java b/src/main/java/com/recurly/v3/resources/Transaction.java index 05600d8..4933482 100644 --- a/src/main/java/com/recurly/v3/resources/Transaction.java +++ b/src/main/java/com/recurly/v3/resources/Transaction.java @@ -179,6 +179,14 @@ public class Transaction extends Resource { @Expose private Constants.TransactionMerchantReasonCode merchantReasonCode; + /** + * Next action values are used for any required customer follow-up action. Currently, this is + * supported for Ebanx when using Pix Automatico. + */ + @SerializedName("next_action") + @Expose + private TransactionNextAction nextAction; + /** Object type */ @SerializedName("object") @Expose @@ -624,6 +632,22 @@ public void setMerchantReasonCode( this.merchantReasonCode = merchantReasonCode; } + /** + * Next action values are used for any required customer follow-up action. Currently, this is + * supported for Ebanx when using Pix Automatico. + */ + public TransactionNextAction getNextAction() { + return this.nextAction; + } + + /** + * @param nextAction Next action values are used for any required customer follow-up action. + * Currently, this is supported for Ebanx when using Pix Automatico. + */ + public void setNextAction(final TransactionNextAction nextAction) { + this.nextAction = nextAction; + } + /** Object type */ public String getObject() { return this.object; diff --git a/src/main/java/com/recurly/v3/resources/TransactionNextAction.java b/src/main/java/com/recurly/v3/resources/TransactionNextAction.java new file mode 100644 index 0000000..b0e0c36 --- /dev/null +++ b/src/main/java/com/recurly/v3/resources/TransactionNextAction.java @@ -0,0 +1,44 @@ +/** + * This file is automatically created by Recurly's OpenAPI generation process and thus any edits you + * make by hand will be lost. If you wish to make a change to this file, please create a Github + * issue explaining the changes you need and we will usher them to the appropriate places. + */ +package com.recurly.v3.resources; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import com.recurly.v3.Constants; +import com.recurly.v3.Resource; + +public class TransactionNextAction extends Resource { + + /** The type of next action required. */ + @SerializedName("type") + @Expose + private Constants.NextActionType type; + + /** The value associated with the next action type. */ + @SerializedName("value") + @Expose + private String value; + + /** The type of next action required. */ + public Constants.NextActionType getType() { + return this.type; + } + + /** @param type The type of next action required. */ + public void setType(final Constants.NextActionType type) { + this.type = type; + } + + /** The value associated with the next action type. */ + public String getValue() { + return this.value; + } + + /** @param value The value associated with the next action type. */ + public void setValue(final String value) { + this.value = value; + } +}