Class TransactionSimulateAuthorizationParams.Body.Builder
-
- All Implemented Interfaces:
public final class TransactionSimulateAuthorizationParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
amount
final TransactionSimulateAuthorizationParams.Body.Builder amount(Long amount)
Amount (in cents) to authorize. For credit authorizations and financial credit authorizations, any value entered will be converted into a negative amount in the simulated transaction. For example, entering 100 in this field will result in a -100 amount in the transaction. For balance inquiries, this field must be set to 0.
-
amount
final TransactionSimulateAuthorizationParams.Body.Builder amount(JsonField<Long> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
descriptor
final TransactionSimulateAuthorizationParams.Body.Builder descriptor(String descriptor)
Merchant descriptor.
-
descriptor
final TransactionSimulateAuthorizationParams.Body.Builder descriptor(JsonField<String> descriptor)
Sets Builder.descriptor to an arbitrary JSON value.
You should usually call Builder.descriptor with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pan
final TransactionSimulateAuthorizationParams.Body.Builder pan(String pan)
Sixteen digit card number.
-
pan
final TransactionSimulateAuthorizationParams.Body.Builder pan(JsonField<String> pan)
Sets Builder.pan to an arbitrary JSON value.
You should usually call Builder.pan with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mcc
final TransactionSimulateAuthorizationParams.Body.Builder mcc(String mcc)
Merchant category code for the transaction to be simulated. A four-digit number listed in ISO 18245. Supported merchant category codes can be found here.
-
mcc
final TransactionSimulateAuthorizationParams.Body.Builder mcc(JsonField<String> mcc)
Sets Builder.mcc to an arbitrary JSON value.
You should usually call Builder.mcc with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
merchantAcceptorId
final TransactionSimulateAuthorizationParams.Body.Builder merchantAcceptorId(String merchantAcceptorId)
Unique identifier to identify the payment card acceptor.
-
merchantAcceptorId
final TransactionSimulateAuthorizationParams.Body.Builder merchantAcceptorId(JsonField<String> merchantAcceptorId)
Sets Builder.merchantAcceptorId to an arbitrary JSON value.
You should usually call Builder.merchantAcceptorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
merchantAmount
final TransactionSimulateAuthorizationParams.Body.Builder merchantAmount(Long merchantAmount)
Amount of the transaction to be simulated in currency specified in merchant_currency, including any acquirer fees.
-
merchantAmount
final TransactionSimulateAuthorizationParams.Body.Builder merchantAmount(JsonField<Long> merchantAmount)
Sets Builder.merchantAmount to an arbitrary JSON value.
You should usually call Builder.merchantAmount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
merchantCurrency
final TransactionSimulateAuthorizationParams.Body.Builder merchantCurrency(String merchantCurrency)
3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD, GBP, EUR and defaults to GBP if another ISO 4217 code is provided
-
merchantCurrency
final TransactionSimulateAuthorizationParams.Body.Builder merchantCurrency(JsonField<String> merchantCurrency)
Sets Builder.merchantCurrency to an arbitrary JSON value.
You should usually call Builder.merchantCurrency with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
partialApprovalCapable
final TransactionSimulateAuthorizationParams.Body.Builder partialApprovalCapable(Boolean partialApprovalCapable)
Set to true if the terminal is capable of partial approval otherwise false. Partial approval is when part of a transaction is approved and another payment must be used for the remainder.
-
partialApprovalCapable
final TransactionSimulateAuthorizationParams.Body.Builder partialApprovalCapable(JsonField<Boolean> partialApprovalCapable)
Sets Builder.partialApprovalCapable to an arbitrary JSON value.
You should usually call Builder.partialApprovalCapable with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pin
final TransactionSimulateAuthorizationParams.Body.Builder pin(String pin)
Simulate entering a PIN. If omitted, PIN check will not be performed.
-
pin
final TransactionSimulateAuthorizationParams.Body.Builder pin(JsonField<String> pin)
Sets Builder.pin to an arbitrary JSON value.
You should usually call Builder.pin with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final TransactionSimulateAuthorizationParams.Body.Builder status(TransactionSimulateAuthorizationParams.Status status)
Type of event to simulate.
AUTHORIZATIONis a dual message purchase authorization, meaning a subsequent clearing step is required to settle the transaction.BALANCE_INQUIRYis a $0 authorization requesting the balance held on the card, and is most often observed when a cardholder requests to view a card's balance at an ATM.CREDIT_AUTHORIZATIONis a dual message request from a merchant to authorize a refund, meaning a subsequent clearing step is required to settle the transaction.FINANCIAL_AUTHORIZATIONis a single message request from a merchant to debit funds immediately (such as an ATM withdrawal), and no subsequent clearing is required to settle the transaction.FINANCIAL_CREDIT_AUTHORIZATIONis a single message request from a merchant to credit funds immediately, and no subsequent clearing is required to settle the transaction.
-
status
final TransactionSimulateAuthorizationParams.Body.Builder status(JsonField<TransactionSimulateAuthorizationParams.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TransactionSimulateAuthorizationParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TransactionSimulateAuthorizationParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TransactionSimulateAuthorizationParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TransactionSimulateAuthorizationParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TransactionSimulateAuthorizationParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TransactionSimulateAuthorizationParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .descriptor() .pan()
-
-
-
-