Class BillingService
Class representing a set of billing-related functionality.
Inherited Members
Namespace: EasyPost.Services
Assembly: EasyPost.dll
Syntax
public class BillingService : EasyPostService, IEasyPostService
  Methods
| Improve this Doc View SourceDeletePaymentMethod(PaymentMethod.Priority, CancellationToken)
Delete a PaymentMethod from the user's account. Related API documentation.
Declaration
public async Task DeletePaymentMethod(PaymentMethod.Priority priority, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PaymentMethod.Priority | priority | Which PaymentMethod.Priority of payment method to delete.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task | None.  | 
      
FundWallet(String, PaymentMethod.Priority, CancellationToken)
Fund your wallet from a specific PaymentMethod. Related API documentation.
Declaration
public async Task FundWallet(string amount, PaymentMethod.Priority priority = null, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | amount | Amount to fund.  | 
      
| PaymentMethod.Priority | priority | Which PaymentMethod.Priority of payment method to use to fund the wallet. Defaults to Primary.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task | None.  | 
      
RetrievePaymentMethodsSummary(CancellationToken)
List all PaymentMethods for the user's account. Related API documentation.
Declaration
public async Task<PaymentMethodsSummary> RetrievePaymentMethodsSummary(CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<PaymentMethodsSummary> | A PaymentMethodsSummary object.  | 
      
Implements
      IDisposable