Show / Hide Table of Contents

Class BillingService

Class representing a set of billing-related functionality.

Inheritance
System.Object
EasyPostService
BillingService
Implements
IEasyPostService
IDisposable
Inherited Members
EasyPostService.Client
EasyPostService.RequestAsync<T>(Method, String, CancellationToken, Nullable<Dictionary<String, Object>>, Nullable<String>, ApiVersion)
EasyPostService.RequestAsync(Method, String, CancellationToken, Nullable<Dictionary<String, Object>>, ApiVersion)
EasyPostService.Dispose()
EasyPostService.Dispose(Boolean)
Namespace: EasyPost.Services
Assembly: EasyPost.dll
Syntax
public class BillingService : EasyPostService, IEasyPostService

Methods

| Improve this Doc View Source

DeletePaymentMethod(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

to use for the HTTP request.

Returns
Type Description
Task

None.

| Improve this Doc View Source

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

to use for the HTTP request.

Returns
Type Description
Task

None.

| Improve this Doc View Source

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

to use for the HTTP request.

Returns
Type Description
Task<PaymentMethodsSummary>

A PaymentMethodsSummary object.

Implements

IEasyPostService
IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX