public class BillingApi extends Object
Modifier and Type | Class and Description |
---|---|
class |
BillingApi.GetPlanOptions |
class |
BillingApi.ListInvoicesOptions |
class |
BillingApi.ListPaymentsOptions |
class |
BillingApi.UpdatePlanOptions |
Constructor and Description |
---|
BillingApi() |
BillingApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
BillingPlanResponse |
getBillingPlan(String billingPlanId)
Get the billing plan details.
|
CreditCardInformation |
getCreditCardInfo(String accountId)
Get metadata for a given credit card.
|
BillingInvoice |
getInvoice(String accountId,
String invoiceId)
Retrieves a billing invoice.
|
BillingPaymentItem |
getPayment(String accountId,
String paymentId)
Gets billing payment information for a specific payment.
|
AccountBillingPlanResponse |
getPlan(String accountId)
Get Account Billing Plan
Retrieves the billing plan information for the specified account, including the current billing plan, successor plans, billing address, and billing credit card.
|
AccountBillingPlanResponse |
getPlan(String accountId,
BillingApi.GetPlanOptions options)
Get Account Billing Plan
Retrieves the billing plan information for the specified account, including the current billing plan, successor plans, billing address, and billing credit card.
|
BillingPlansResponse |
listBillingPlans()
Gets the list of available billing plans.
|
BillingInvoicesResponse |
listInvoices(String accountId)
Get a List of Billing Invoices
Retrieves a list of invoices for the account.
|
BillingInvoicesResponse |
listInvoices(String accountId,
BillingApi.ListInvoicesOptions options)
Get a List of Billing Invoices
Retrieves a list of invoices for the account.
|
BillingInvoicesSummary |
listInvoicesPastDue(String accountId)
Get a list of past due invoices.
|
BillingPaymentsResponse |
listPayments(String accountId)
Gets payment information for one or more payments.
|
BillingPaymentsResponse |
listPayments(String accountId,
BillingApi.ListPaymentsOptions options)
Gets payment information for one or more payments.
|
BillingPaymentResponse |
makePayment(String accountId,
BillingPaymentRequest billingPaymentRequest)
Posts a payment to a past due invoice.
|
void |
purchaseEnvelopes(String accountId,
PurchasedEnvelopesInformation purchasedEnvelopesInformation)
Reserverd: Purchase additional envelopes.
|
void |
setApiClient(ApiClient apiClient) |
BillingPlanUpdateResponse |
updatePlan(String accountId,
BillingPlanInformation billingPlanInformation)
Updates the account billing plan.
|
BillingPlanUpdateResponse |
updatePlan(String accountId,
BillingPlanInformation billingPlanInformation,
BillingApi.UpdatePlanOptions options)
Updates the account billing plan.
|
public BillingApi()
public BillingApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public BillingPlanResponse getBillingPlan(String billingPlanId) throws ApiException
billingPlanId
- The ID of the billing plan being accessed. (required)ApiException
- if fails to make API callpublic CreditCardInformation getCreditCardInfo(String accountId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)ApiException
- if fails to make API callpublic BillingInvoice getInvoice(String accountId, String invoiceId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)invoiceId
- (required)ApiException
- if fails to make API callpublic BillingPaymentItem getPayment(String accountId, String paymentId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)paymentId
- (required)ApiException
- if fails to make API callpublic AccountBillingPlanResponse getPlan(String accountId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)ApiException
public AccountBillingPlanResponse getPlan(String accountId, BillingApi.GetPlanOptions options) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)options
- for modifying the method behavior.ApiException
- if fails to make API callpublic BillingPlansResponse listBillingPlans() throws ApiException
ApiException
- if fails to make API callpublic BillingInvoicesResponse listInvoices(String accountId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)ApiException
public BillingInvoicesResponse listInvoices(String accountId, BillingApi.ListInvoicesOptions options) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)options
- for modifying the method behavior.ApiException
- if fails to make API callpublic BillingInvoicesSummary listInvoicesPastDue(String accountId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)ApiException
- if fails to make API callpublic BillingPaymentsResponse listPayments(String accountId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)ApiException
public BillingPaymentsResponse listPayments(String accountId, BillingApi.ListPaymentsOptions options) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)options
- for modifying the method behavior.ApiException
- if fails to make API callpublic BillingPaymentResponse makePayment(String accountId, BillingPaymentRequest billingPaymentRequest) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)billingPaymentRequest
- (optional)ApiException
- if fails to make API callpublic void purchaseEnvelopes(String accountId, PurchasedEnvelopesInformation purchasedEnvelopesInformation) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)purchasedEnvelopesInformation
- (optional)ApiException
- if fails to make API callpublic BillingPlanUpdateResponse updatePlan(String accountId, BillingPlanInformation billingPlanInformation) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)billingPlanInformation
- (optional)ApiException
public BillingPlanUpdateResponse updatePlan(String accountId, BillingPlanInformation billingPlanInformation, BillingApi.UpdatePlanOptions options) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)billingPlanInformation
- (optional)options
- for modifying the method behavior.ApiException
- if fails to make API callCopyright © 2018. All rights reserved.