Skip to content

Commit bfecb5e

Browse files
Merge pull request #294 from recurly/v3-v2021-02-25-15003716700
Generated Latest Changes for v2021-02-25
2 parents 6d14bfe + ff09d30 commit bfecb5e

3 files changed

Lines changed: 37 additions & 21 deletions

File tree

openapi/api.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24279,8 +24279,8 @@ components:
2427924279
maxLength: 13
2428024280
account:
2428124281
"$ref": "#/components/schemas/AccountMini"
24282-
indicator:
24283-
"$ref": "#/components/schemas/TransactionIndicatorEnum"
24282+
initiator:
24283+
"$ref": "#/components/schemas/TransactionInitiatorEnum"
2428424284
invoice:
2428524285
"$ref": "#/components/schemas/InvoiceMini"
2428624286
merchant_reason_code:
@@ -24837,8 +24837,8 @@ components:
2483724837
allOf:
2483824838
- type: object
2483924839
properties:
24840-
indicator:
24841-
"$ref": "#/components/schemas/Transaction/properties/indicator"
24840+
initiator:
24841+
"$ref": "#/components/schemas/Transaction/properties/initiator"
2484224842
merchant_reason_code:
2484324843
"$ref": "#/components/schemas/Transaction/properties/merchant_reason_code"
2484424844
customer_notes:
@@ -26613,8 +26613,6 @@ components:
2661326613
Stripe Gateway or Ebanx UPI.
2661426614
enum:
2661526615
- stripe_confirmation_token
26616-
- stripe_customer
26617-
- stripe_payment_method
2661826616
- upi_vpa
2661926617
GatewayTransactionTypeEnum:
2662026618
type: string
@@ -26978,6 +26976,12 @@ components:
2697826976
- recurring
2697926977
- refunded_externally
2698026978
- transparent
26979+
- token_api
26980+
- api_force_collect
26981+
- api_sub_change
26982+
- api_verify_card
26983+
- refund_balance
26984+
- amazon_v2_ipn
2698126985
TransactionStatusEnum:
2698226986
type: string
2698326987
enum:
@@ -27464,7 +27468,7 @@ components:
2746427468
- service_extension
2746527469
- split_shipment
2746627470
- top_up
27467-
TransactionIndicatorEnum:
27471+
TransactionInitiatorEnum:
2746827472
type: string
2746927473
description: Must be sent for one-time transactions in order to provide context
2747027474
on which entity is submitting the transaction to ensure proper fraud checks

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,6 @@ public enum PaymentGatewayReferences {
446446
@SerializedName("stripe_confirmation_token")
447447
STRIPE_CONFIRMATION_TOKEN,
448448

449-
@SerializedName("stripe_customer")
450-
STRIPE_CUSTOMER,
451-
452-
@SerializedName("stripe_payment_method")
453-
STRIPE_PAYMENT_METHOD,
454-
455449
@SerializedName("upi_vpa")
456450
UPI_VPA,
457451

@@ -1227,6 +1221,24 @@ public enum TransactionOrigin {
12271221
@SerializedName("transparent")
12281222
TRANSPARENT,
12291223

1224+
@SerializedName("token_api")
1225+
TOKEN_API,
1226+
1227+
@SerializedName("api_force_collect")
1228+
API_FORCE_COLLECT,
1229+
1230+
@SerializedName("api_sub_change")
1231+
API_SUB_CHANGE,
1232+
1233+
@SerializedName("api_verify_card")
1234+
API_VERIFY_CARD,
1235+
1236+
@SerializedName("refund_balance")
1237+
REFUND_BALANCE,
1238+
1239+
@SerializedName("amazon_v2_ipn")
1240+
AMAZON_V2_IPN,
1241+
12301242
};
12311243

12321244
public enum TransactionStatus {
@@ -2378,7 +2390,7 @@ public enum TransactionMerchantReasonCode {
23782390

23792391
};
23802392

2381-
public enum TransactionIndicator {
2393+
public enum TransactionInitiator {
23822394
UNDEFINED,
23832395

23842396
@SerializedName("customer")

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ public class Transaction extends Resource {
129129
* customer is in session, send `customer`. If this is a merchant initiated one-time transaction,
130130
* send `merchant`.
131131
*/
132-
@SerializedName("indicator")
132+
@SerializedName("initiator")
133133
@Expose
134-
private Constants.TransactionIndicator indicator;
134+
private Constants.TransactionInitiator initiator;
135135

136136
/** Invoice mini details */
137137
@SerializedName("invoice")
@@ -514,18 +514,18 @@ public void setId(final String id) {
514514
* customer is in session, send `customer`. If this is a merchant initiated one-time transaction,
515515
* send `merchant`.
516516
*/
517-
public Constants.TransactionIndicator getIndicator() {
518-
return this.indicator;
517+
public Constants.TransactionInitiator getInitiator() {
518+
return this.initiator;
519519
}
520520

521521
/**
522-
* @param indicator Must be sent for one-time transactions in order to provide context on which
522+
* @param initiator Must be sent for one-time transactions in order to provide context on which
523523
* entity is submitting the transaction to ensure proper fraud checks are observed, such as
524524
* 3DS. If the customer is in session, send `customer`. If this is a merchant initiated
525525
* one-time transaction, send `merchant`.
526526
*/
527-
public void setIndicator(final Constants.TransactionIndicator indicator) {
528-
this.indicator = indicator;
527+
public void setInitiator(final Constants.TransactionInitiator initiator) {
528+
this.initiator = initiator;
529529
}
530530

531531
/** Invoice mini details */

0 commit comments

Comments
 (0)