Package tbdex.sdk.protocol.models
Class PaymentMethod
-
- All Implemented Interfaces:
public class PaymentMethodAn abstract class representing the structure and common functionality available on all PaymentMethods.
-
-
Method Summary
Modifier and Type Method Description final StringgetKind()Unique string identifying a single kind of payment method. final StringgetName()Payment Method name. final StringgetDescription()Blurb containing helpful information about the payment method. final StringgetGroup()Value that can be used to group specific payment methods together e.g. final JsonNodegetRequiredPaymentDetails()A JSON Schema containing the fields that need to be collected in the RFQ's selected payment methods in order to use this payment method. final StringgetFee()Fee charged to use this payment method. final StringgetMin()Minimum amount required to use this payment method. final StringgetMax()Maximum amount allowed when using this payment method. final JsonSchemagetRequiredPaymentDetailsSchema()Parse the contents of requiredPaymentDetails into a JsonSchema that can do validation. -
-
Method Detail
-
getDescription
final String getDescription()
Blurb containing helpful information about the payment method. Expected to be rendered on screen. e.g. "segwit addresses only"
-
getGroup
final String getGroup()
Value that can be used to group specific payment methods together e.g. Mobile Money vs. Direct Bank Deposit
-
getRequiredPaymentDetails
final JsonNode getRequiredPaymentDetails()
A JSON Schema containing the fields that need to be collected in the RFQ's selected payment methods in order to use this payment method.
-
getFee
final String getFee()
Fee charged to use this payment method. Absence of this field implies that there is no additional fee associated to the respective payment method.
-
getRequiredPaymentDetailsSchema
final JsonSchema getRequiredPaymentDetailsSchema()
Parse the contents of requiredPaymentDetails into a JsonSchema that can do validation.
-
-
-
-