Class BillingService
java.lang.Object
com.easypost.service.BillingService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deletePaymentMethod
(PaymentMethod.Priority priority) Delete a payment method.void
fundWallet
(String amount) Fund your wallet from the primary payment method.void
fundWallet
(String amount, PaymentMethod.Priority priority) Fund your wallet from a specific payment method.List all payment methods for this account.
-
Method Details
-
deletePaymentMethod
Delete a payment method.- Parameters:
priority
- Which type of payment method to delete.- Throws:
EasyPostException
- when the request fails.
-
fundWallet
Fund your wallet from the primary payment method.- Parameters:
amount
- Amount to fund.- Throws:
EasyPostException
- when the request fails.
-
fundWallet
Fund your wallet from a specific payment method.- Parameters:
amount
- Amount to fund.priority
- which type of payment method to use to fund the wallet.- Throws:
EasyPostException
- when the request fails.
-
retrievePaymentMethods
List all payment methods for this account.- Returns:
- an EasyPost.PaymentMethod summary object.
- Throws:
EasyPostException
- when the request fails or billing has not been set up.
-