Skip to content

Commit e5ba8bf

Browse files
authored
Merge pull request #310 from recurly/v3-v2021-02-25-19050956020
Generated Latest Changes for v2021-02-25
2 parents 799cbd2 + e294b18 commit e5ba8bf

6 files changed

Lines changed: 151 additions & 13 deletions

File tree

openapi/api.yaml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18373,9 +18373,11 @@ components:
1837318373
street1:
1837418374
type: string
1837518375
title: Street 1
18376+
maxLength: 50
1837618377
street2:
1837718378
type: string
1837818379
title: Street 2
18380+
maxLength: 50
1837918381
city:
1838018382
type: string
1838118383
title: City
@@ -23977,8 +23979,10 @@ components:
2397723979
gateway_code:
2397823980
type: string
2397923981
title: Gateway Code
23980-
description: If present, this subscription's transactions will use the payment
23981-
gateway with this code.
23982+
description: If present, this subscription's subsequent transactions will
23983+
use the payment gateway with this code. To select a payment gateway to
23984+
use when creating a Subscription, be sure to set the `account.billing_info.gateway_code`
23985+
as well.
2398223986
maxLength: 13
2398323987
transaction_type:
2398423988
description: An optional type designation for the payment gateway transaction
@@ -24634,6 +24638,22 @@ components:
2463424638
title: VAT Number
2463524639
fraud_info:
2463624640
"$ref": "#/components/schemas/TransactionFraudInfo"
24641+
next_action:
24642+
type: object
24643+
x-class-name: TransactionNextAction
24644+
description: Next action values are used for any required customer follow-up
24645+
action. Currently, this is supported for Ebanx when using Pix Automatico.
24646+
properties:
24647+
type:
24648+
type: string
24649+
title: Next action type
24650+
description: The type of next action required.
24651+
"$ref": "#/components/schemas/NextActionTypeEnum"
24652+
value:
24653+
type: string
24654+
title: Next action value
24655+
description: The value associated with the next action type.
24656+
title: Next action
2463724657
TransactionFraudInfo:
2463824658
type: object
2463924659
title: Fraud information
@@ -27043,9 +27063,11 @@ components:
2704327063
- credit_card
2704427064
- eft
2704527065
- google_pay
27066+
- mercadopago
2704627067
- money_order
2704727068
- other
2704827069
- paypal
27070+
- pix_automatico
2704927071
- roku
2705027072
- sepadirectdebit
2705127073
- wire_transfer
@@ -27183,6 +27205,11 @@ components:
2718327205
- scheduled
2718427206
- success
2718527207
- void
27208+
NextActionTypeEnum:
27209+
type: string
27210+
description: The type of next action required for the transaction.
27211+
enum:
27212+
- qr_code
2718627213
CvvCheckEnum:
2718727214
type: string
2718827215
enum:
@@ -27259,6 +27286,9 @@ components:
2725927286
- boleto
2726027287
- cash_app
2726127288
- upi_autopay
27289+
- pix_automatico
27290+
- mercadopago
27291+
- klarna
2726227292
CardTypeEnum:
2726327293
type: string
2726427294
enum:
@@ -27584,10 +27614,12 @@ components:
2758427614
AchTypeEnum:
2758527615
type: string
2758627616
description: The payment method type for a non-credit card based billing info.
27587-
`bacs` and `becs` are the only accepted values.
27617+
`bacs`, `becs`, `pix-automatico`, `mercadopago` are the only accepted values.
2758827618
enum:
2758927619
- bacs
2759027620
- becs
27621+
- pix-automatico
27622+
- mercadopago
2759127623
AchAccountTypeEnum:
2759227624
type: string
2759327625
description: The bank account type. (ACH only)

src/main/java/com/recurly/v3/Constants.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,9 @@ public enum ExternalPaymentMethod {
923923
@SerializedName("google_pay")
924924
GOOGLE_PAY,
925925

926+
@SerializedName("mercadopago")
927+
MERCADOPAGO,
928+
926929
@SerializedName("money_order")
927930
MONEY_ORDER,
928931

@@ -932,6 +935,9 @@ public enum ExternalPaymentMethod {
932935
@SerializedName("paypal")
933936
PAYPAL,
934937

938+
@SerializedName("pix_automatico")
939+
PIX_AUTOMATICO,
940+
935941
@SerializedName("roku")
936942
ROKU,
937943

@@ -1281,6 +1287,14 @@ public enum TransactionStatus {
12811287

12821288
};
12831289

1290+
public enum NextActionType {
1291+
UNDEFINED,
1292+
1293+
@SerializedName("qr_code")
1294+
QR_CODE,
1295+
1296+
};
1297+
12841298
public enum CvvCheck {
12851299
UNDEFINED,
12861300

@@ -1491,6 +1505,15 @@ public enum PaymentMethod {
14911505
@SerializedName("upi_autopay")
14921506
UPI_AUTOPAY,
14931507

1508+
@SerializedName("pix_automatico")
1509+
PIX_AUTOMATICO,
1510+
1511+
@SerializedName("mercadopago")
1512+
MERCADOPAGO,
1513+
1514+
@SerializedName("klarna")
1515+
KLARNA,
1516+
14941517
};
14951518

14961519
public enum CardType {
@@ -2311,6 +2334,12 @@ public enum AchType {
23112334
@SerializedName("becs")
23122335
BECS,
23132336

2337+
@SerializedName("pix-automatico")
2338+
PIX_AUTOMATICO,
2339+
2340+
@SerializedName("mercadopago")
2341+
MERCADOPAGO,
2342+
23142343
};
23152344

23162345
public enum AchAccountType {

src/main/java/com/recurly/v3/requests/BillingInfoCreate.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ public class BillingInfoCreate extends Request {
248248
private Constants.GatewayTransactionType transactionType;
249249

250250
/**
251-
* The payment method type for a non-credit card based billing info. `bacs` and `becs` are the
252-
* only accepted values.
251+
* The payment method type for a non-credit card based billing info. `bacs`, `becs`,
252+
* `pix-automatico`, `mercadopago` are the only accepted values.
253253
*/
254254
@SerializedName("type")
255255
@Expose
@@ -750,16 +750,16 @@ public void setTransactionType(final Constants.GatewayTransactionType transactio
750750
}
751751

752752
/**
753-
* The payment method type for a non-credit card based billing info. `bacs` and `becs` are the
754-
* only accepted values.
753+
* The payment method type for a non-credit card based billing info. `bacs`, `becs`,
754+
* `pix-automatico`, `mercadopago` are the only accepted values.
755755
*/
756756
public Constants.AchType getType() {
757757
return this.type;
758758
}
759759

760760
/**
761-
* @param type The payment method type for a non-credit card based billing info. `bacs` and `becs`
762-
* are the only accepted values.
761+
* @param type The payment method type for a non-credit card based billing info. `bacs`, `becs`,
762+
* `pix-automatico`, `mercadopago` are the only accepted values.
763763
*/
764764
public void setType(final Constants.AchType type) {
765765
this.type = type;

src/main/java/com/recurly/v3/requests/SubscriptionCreate.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ public class SubscriptionCreate extends Request {
111111
@Expose
112112
private String customerNotes;
113113

114-
/** If present, this subscription's transactions will use the payment gateway with this code. */
114+
/**
115+
* If present, this subscription's subsequent transactions will use the payment gateway with this
116+
* code. To select a payment gateway to use when creating a Subscription, be sure to set the
117+
* `account.billing_info.gateway_code` as well.
118+
*/
115119
@SerializedName("gateway_code")
116120
@Expose
117121
private String gatewayCode;
@@ -487,14 +491,19 @@ public void setCustomerNotes(final String customerNotes) {
487491
this.customerNotes = customerNotes;
488492
}
489493

490-
/** If present, this subscription's transactions will use the payment gateway with this code. */
494+
/**
495+
* If present, this subscription's subsequent transactions will use the payment gateway with this
496+
* code. To select a payment gateway to use when creating a Subscription, be sure to set the
497+
* `account.billing_info.gateway_code` as well.
498+
*/
491499
public String getGatewayCode() {
492500
return this.gatewayCode;
493501
}
494502

495503
/**
496-
* @param gatewayCode If present, this subscription's transactions will use the payment gateway
497-
* with this code.
504+
* @param gatewayCode If present, this subscription's subsequent transactions will use the payment
505+
* gateway with this code. To select a payment gateway to use when creating a Subscription, be
506+
* sure to set the `account.billing_info.gateway_code` as well.
498507
*/
499508
public void setGatewayCode(final String gatewayCode) {
500509
this.gatewayCode = gatewayCode;

src/main/java/com/recurly/v3/resources/Transaction.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ public class Transaction extends Resource {
179179
@Expose
180180
private Constants.TransactionMerchantReasonCode merchantReasonCode;
181181

182+
/**
183+
* Next action values are used for any required customer follow-up action. Currently, this is
184+
* supported for Ebanx when using Pix Automatico.
185+
*/
186+
@SerializedName("next_action")
187+
@Expose
188+
private TransactionNextAction nextAction;
189+
182190
/** Object type */
183191
@SerializedName("object")
184192
@Expose
@@ -624,6 +632,22 @@ public void setMerchantReasonCode(
624632
this.merchantReasonCode = merchantReasonCode;
625633
}
626634

635+
/**
636+
* Next action values are used for any required customer follow-up action. Currently, this is
637+
* supported for Ebanx when using Pix Automatico.
638+
*/
639+
public TransactionNextAction getNextAction() {
640+
return this.nextAction;
641+
}
642+
643+
/**
644+
* @param nextAction Next action values are used for any required customer follow-up action.
645+
* Currently, this is supported for Ebanx when using Pix Automatico.
646+
*/
647+
public void setNextAction(final TransactionNextAction nextAction) {
648+
this.nextAction = nextAction;
649+
}
650+
627651
/** Object type */
628652
public String getObject() {
629653
return this.object;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* This file is automatically created by Recurly's OpenAPI generation process and thus any edits you
3+
* make by hand will be lost. If you wish to make a change to this file, please create a Github
4+
* issue explaining the changes you need and we will usher them to the appropriate places.
5+
*/
6+
package com.recurly.v3.resources;
7+
8+
import com.google.gson.annotations.Expose;
9+
import com.google.gson.annotations.SerializedName;
10+
import com.recurly.v3.Constants;
11+
import com.recurly.v3.Resource;
12+
13+
public class TransactionNextAction extends Resource {
14+
15+
/** The type of next action required. */
16+
@SerializedName("type")
17+
@Expose
18+
private Constants.NextActionType type;
19+
20+
/** The value associated with the next action type. */
21+
@SerializedName("value")
22+
@Expose
23+
private String value;
24+
25+
/** The type of next action required. */
26+
public Constants.NextActionType getType() {
27+
return this.type;
28+
}
29+
30+
/** @param type The type of next action required. */
31+
public void setType(final Constants.NextActionType type) {
32+
this.type = type;
33+
}
34+
35+
/** The value associated with the next action type. */
36+
public String getValue() {
37+
return this.value;
38+
}
39+
40+
/** @param value The value associated with the next action type. */
41+
public void setValue(final String value) {
42+
this.value = value;
43+
}
44+
}

0 commit comments

Comments
 (0)