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
18 changes: 11 additions & 7 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24279,8 +24279,8 @@ components:
maxLength: 13
account:
"$ref": "#/components/schemas/AccountMini"
indicator:
"$ref": "#/components/schemas/TransactionIndicatorEnum"
initiator:
"$ref": "#/components/schemas/TransactionInitiatorEnum"
invoice:
"$ref": "#/components/schemas/InvoiceMini"
merchant_reason_code:
Expand Down Expand Up @@ -24837,8 +24837,8 @@ components:
allOf:
- type: object
properties:
indicator:
"$ref": "#/components/schemas/Transaction/properties/indicator"
initiator:
"$ref": "#/components/schemas/Transaction/properties/initiator"
merchant_reason_code:
"$ref": "#/components/schemas/Transaction/properties/merchant_reason_code"
customer_notes:
Expand Down Expand Up @@ -26613,8 +26613,6 @@ components:
Stripe Gateway or Ebanx UPI.
enum:
- stripe_confirmation_token
- stripe_customer
- stripe_payment_method
- upi_vpa
GatewayTransactionTypeEnum:
type: string
Expand Down Expand Up @@ -26978,6 +26976,12 @@ components:
- recurring
- refunded_externally
- transparent
- token_api
- api_force_collect
- api_sub_change
- api_verify_card
- refund_balance
- amazon_v2_ipn
TransactionStatusEnum:
type: string
enum:
Expand Down Expand Up @@ -27464,7 +27468,7 @@ components:
- service_extension
- split_shipment
- top_up
TransactionIndicatorEnum:
TransactionInitiatorEnum:
type: string
description: Must be sent for one-time transactions in order to provide context
on which entity is submitting the transaction to ensure proper fraud checks
Expand Down
26 changes: 19 additions & 7 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,6 @@ public enum PaymentGatewayReferences {
@SerializedName("stripe_confirmation_token")
STRIPE_CONFIRMATION_TOKEN,

@SerializedName("stripe_customer")
STRIPE_CUSTOMER,

@SerializedName("stripe_payment_method")
STRIPE_PAYMENT_METHOD,

@SerializedName("upi_vpa")
UPI_VPA,

Expand Down Expand Up @@ -1227,6 +1221,24 @@ public enum TransactionOrigin {
@SerializedName("transparent")
TRANSPARENT,

@SerializedName("token_api")
TOKEN_API,

@SerializedName("api_force_collect")
API_FORCE_COLLECT,

@SerializedName("api_sub_change")
API_SUB_CHANGE,

@SerializedName("api_verify_card")
API_VERIFY_CARD,

@SerializedName("refund_balance")
REFUND_BALANCE,

@SerializedName("amazon_v2_ipn")
AMAZON_V2_IPN,

};

public enum TransactionStatus {
Expand Down Expand Up @@ -2378,7 +2390,7 @@ public enum TransactionMerchantReasonCode {

};

public enum TransactionIndicator {
public enum TransactionInitiator {
UNDEFINED,

@SerializedName("customer")
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/com/recurly/v3/resources/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ public class Transaction extends Resource {
* customer is in session, send `customer`. If this is a merchant initiated one-time transaction,
* send `merchant`.
*/
@SerializedName("indicator")
@SerializedName("initiator")
@Expose
private Constants.TransactionIndicator indicator;
private Constants.TransactionInitiator initiator;

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

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

/** Invoice mini details */
Expand Down
Loading