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
38 changes: 35 additions & 3 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -27043,9 +27063,11 @@ components:
- credit_card
- eft
- google_pay
- mercadopago
- money_order
- other
- paypal
- pix_automatico
- roku
- sepadirectdebit
- wire_transfer
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -27259,6 +27286,9 @@ components:
- boleto
- cash_app
- upi_autopay
- pix_automatico
- mercadopago
- klarna
CardTypeEnum:
type: string
enum:
Expand Down Expand Up @@ -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)
Expand Down
29 changes: 29 additions & 0 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,9 @@ public enum ExternalPaymentMethod {
@SerializedName("google_pay")
GOOGLE_PAY,

@SerializedName("mercadopago")
MERCADOPAGO,

@SerializedName("money_order")
MONEY_ORDER,

Expand All @@ -932,6 +935,9 @@ public enum ExternalPaymentMethod {
@SerializedName("paypal")
PAYPAL,

@SerializedName("pix_automatico")
PIX_AUTOMATICO,

@SerializedName("roku")
ROKU,

Expand Down Expand Up @@ -1281,6 +1287,14 @@ public enum TransactionStatus {

};

public enum NextActionType {
UNDEFINED,

@SerializedName("qr_code")
QR_CODE,

};

public enum CvvCheck {
UNDEFINED,

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -2311,6 +2334,12 @@ public enum AchType {
@SerializedName("becs")
BECS,

@SerializedName("pix-automatico")
PIX_AUTOMATICO,

@SerializedName("mercadopago")
MERCADOPAGO,

};

public enum AchAccountType {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/requests/BillingInfoCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
17 changes: 13 additions & 4 deletions src/main/java/com/recurly/v3/requests/SubscriptionCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/recurly/v3/resources/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
44 changes: 44 additions & 0 deletions src/main/java/com/recurly/v3/resources/TransactionNextAction.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
Loading