Class PaymentMethod

  • All Implemented Interfaces:

    
    public class PaymentMethod
    
                        

    An abstract class representing the structure and common functionality available on all PaymentMethods.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getKind() Unique string identifying a single kind of payment method.
      final String getName() Payment Method name.
      final String getDescription() Blurb containing helpful information about the payment method.
      final String getGroup() Value that can be used to group specific payment methods together e.g.
      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.
      final String getFee() Fee charged to use this payment method.
      final String getMin() Minimum amount required to use this payment method.
      final String getMax() Maximum amount allowed when using this payment method.
      final JsonSchema getRequiredPaymentDetailsSchema() Parse the contents of requiredPaymentDetails into a JsonSchema that can do validation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getKind

         final String getKind()

        Unique string identifying a single kind of payment method.

      • getName

         final String getName()

        Payment Method name. Expected to be rendered on screen.

      • 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.

      • getMin

         final String getMin()

        Minimum amount required to use this payment method.

      • getMax

         final String getMax()

        Maximum amount allowed when using this payment method.