public class PaymentMethod
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
PaymentMethod(PaymentMethodType type)
Creates a new object of type PaymentMethod.
|
Modifier and Type | Method and Description |
---|---|
PaymentMethod |
clone()
Returns a deep copy of this object.
|
static PaymentMethod |
createMethod(PaymentMethodType type)
Creates a new PaymentMethod with the given type.
|
static java.util.Collection<PaymentMethod> |
createMethods(PaymentMethodType... types)
Creates a collection of payment methods with the given types.
|
PaymentMethodType |
getType()
Returns the payment method type.
|
public PaymentMethod(PaymentMethodType type) throws java.lang.IllegalArgumentException
type
- The payment method's typejava.lang.IllegalArgumentException
- if type is null
or cannot be used to construct this class.public PaymentMethod clone()
clone
in class java.lang.Object
public static PaymentMethod createMethod(PaymentMethodType type)
type
- The payment method's typejava.lang.IllegalArgumentException
- if type is null
or cannot be used to construct this class.public static java.util.Collection<PaymentMethod> createMethods(PaymentMethodType... types)
types
- Payment method typesjava.lang.IllegalArgumentException
- if type is null
or cannot be used to construct this class.public PaymentMethodType getType()