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.
|
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.\n\nBy default the successor plan and credit card information is included in the response.
|
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.\n\nBy default the successor plan and credit card information is included in the response.
|
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 BillingInvoicesResponse listInvoices(String accountId) throws ApiException
accountId - The external account number (int) or account ID Guid.ApiExceptionpublic BillingInvoicesResponse listInvoices(String accountId, BillingApi.ListInvoicesOptions options) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.ListInvoicesOptions - Options for modifying the method behavior.ApiExceptionpublic BillingInvoice getInvoice(String accountId, String invoiceId) throws ApiException
accountId - The external account number (int) or account ID Guid.invoiceId - BillingApi.GetInvoiceOptions - Options for modifying the method behavior.ApiExceptionpublic BillingInvoicesSummary listInvoicesPastDue(String accountId) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.ListInvoicesPastDueOptions - Options for modifying the method behavior.ApiExceptionpublic BillingPaymentsResponse listPayments(String accountId) throws ApiException
accountId - The external account number (int) or account ID Guid.ApiExceptionpublic BillingPaymentsResponse listPayments(String accountId, BillingApi.ListPaymentsOptions options) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.ListPaymentsOptions - Options for modifying the method behavior.ApiExceptionpublic BillingPaymentResponse makePayment(String accountId, BillingPaymentRequest billingPaymentRequest) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.MakePaymentOptions - Options for modifying the method behavior.ApiExceptionpublic BillingPaymentItem getPayment(String accountId, String paymentId) throws ApiException
accountId - The external account number (int) or account ID Guid.paymentId - BillingApi.GetPaymentOptions - Options for modifying the method behavior.ApiExceptionpublic AccountBillingPlanResponse getPlan(String accountId) throws ApiException
accountId - The external account number (int) or account ID Guid.ApiExceptionpublic AccountBillingPlanResponse getPlan(String accountId, BillingApi.GetPlanOptions options) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.GetPlanOptions - Options for modifying the method behavior.ApiExceptionpublic BillingPlanUpdateResponse updatePlan(String accountId, BillingPlanInformation billingPlanInformation) throws ApiException
accountId - The external account number (int) or account ID Guid.ApiExceptionpublic BillingPlanUpdateResponse updatePlan(String accountId, BillingPlanInformation billingPlanInformation, BillingApi.UpdatePlanOptions options) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.UpdatePlanOptions - Options for modifying the method behavior.ApiExceptionpublic void purchaseEnvelopes(String accountId, PurchasedEnvelopesInformation purchasedEnvelopesInformation) throws ApiException
accountId - The external account number (int) or account ID Guid.BillingApi.PurchaseEnvelopesOptions - Options for modifying the method behavior.ApiExceptionpublic BillingPlansResponse listBillingPlans() throws ApiException
BillingApi.ListBillingPlansOptions - Options for modifying the method behavior.ApiExceptionpublic BillingPlanResponse getBillingPlan(String billingPlanId) throws ApiException
billingPlanId - The ID of the billing plan being accessed.BillingApi.GetBillingPlanOptions - Options for modifying the method behavior.ApiExceptionCopyright © 2017. All rights reserved.