Class PaymentMethodClient
- java.lang.Object
-
- com.mercadopago.client.MercadoPagoClient
-
- com.mercadopago.client.paymentmethod.PaymentMethodClient
-
public class PaymentMethodClient extends MercadoPagoClient
Client with methods of Payment Method APIs.
-
-
Field Summary
-
Fields inherited from class com.mercadopago.client.MercadoPagoClient
defaultHeaders, httpClient
-
-
Constructor Summary
Constructors Constructor Description PaymentMethodClient()
Default constructor.PaymentMethodClient(MPHttpClient httpClient)
Constructor used for providing a custom http client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPResourceList<PaymentMethod>
list()
List all payment methods.MPResourceList<PaymentMethod>
list(MPRequestOptions requestOptions)
List all payment methods.
-
-
-
Constructor Detail
-
PaymentMethodClient
public PaymentMethodClient()
Default constructor. Uses the default http client used by the SDK.
-
PaymentMethodClient
public PaymentMethodClient(MPHttpClient httpClient)
Constructor used for providing a custom http client.- Parameters:
httpClient
- httpClient
-
-
Method Detail
-
list
public MPResourceList<PaymentMethod> list() throws MPException, MPApiException
List all payment methods.- Returns:
- list of payment methods
- Throws:
MPException
- an error if the request failsMPApiException
- See Also:
- api docs
-
list
public MPResourceList<PaymentMethod> list(MPRequestOptions requestOptions) throws MPException, MPApiException
List all payment methods.- Parameters:
requestOptions
- metadata to customize the request- Returns:
- list of payment methods
- Throws:
MPException
- an error if the request failsMPApiException
- See Also:
- api docs
-
-