Class InvoiceOperations

All Implemented Interfaces:
IEntityGetOperations<Invoice>, IInvoice, IPartnerComponent<String>, IPartnerComponentString

public class InvoiceOperations
extends BasePartnerComponentString
implements IInvoice
Implements the operations that can be performed on the reseller's invoice.
  • Constructor Details

    • InvoiceOperations

      public InvoiceOperations​(IPartner rootPartnerOperations, String invoiceId)
      Initializes a new instance of the InvoiceOperations class.
      Parameters:
      rootPartnerOperations - The root partner operations instance.
      invoiceId - The invoice identifier.
  • Method Details

    • getDocuments

      public IInvoiceDocuments getDocuments()
      Gets an invoice documents operations.
      Specified by:
      getDocuments in interface IInvoice
      Returns:
      An invoice document operations.
    • getReceipts

      public IReceiptCollection getReceipts()
      Gets the available receipt operations.
      Specified by:
      getReceipts in interface IInvoice
      Returns:
      The available receipt operations.
    • by

      public IInvoiceLineItemCollection by​(BillingProvider billingProvider, InvoiceLineItemType invoiceLineItemType)
      Creates an invoice line item collection operation given a billing provider and invoice line item type.
      Specified by:
      by in interface IInvoice
      Parameters:
      billingProvider - The billing provider.
      invoiceLineItemType - The invoice line item type.
      Returns:
      The invoice line item collection operations.
    • by

      public IReconciliationLineItemCollection by​(BillingProvider provider, InvoiceLineItemType invoiceLineItemType, String currencyCode, BillingPeriod period)
      Creates an invoice line item collection operations given a billing provider and invoice line item type.
      Specified by:
      by in interface IInvoice
      Parameters:
      provider - The type of billing provider.
      invoiceLineItemType - The type of invoice line item type.
      currencyCode - The currency code.
      period - The period for unbilled recon.
      Returns:
      The available invoice line item collection operations given a billing provider and invoice line item type.
    • by

      public IReconciliationLineItemCollection by​(BillingProvider provider, InvoiceLineItemType invoiceLineItemType, String currencyCode, BillingPeriod period, int pageSize)
      Creates an invoice line item collection operations given a billing provider and invoice line item type.
      Specified by:
      by in interface IInvoice
      Parameters:
      provider - The type of billing provider.
      invoiceLineItemType - The type of invoice line item type.
      currencyCode - The currency code.
      period - The period for unbilled recon.
      pageSize - The number of records returned in a single operation.
      Returns:
      The available invoice line item collection operations given a billing provider and invoice line item type.
    • get

      public Invoice get()
      Retrieves information about a specific invoice.
      Specified by:
      get in interface IEntityGetOperations<Invoice>
      Returns:
      The invoice.