Interface InvoiceProfile.Builder

  • Method Details

    • accountId

      InvoiceProfile.Builder accountId(String accountId)

      The account ID the invoice profile is generated for.

      Parameters:
      accountId - The account ID the invoice profile is generated for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • receiverName

      InvoiceProfile.Builder receiverName(String receiverName)

      The name of the person receiving the invoice profile.

      Parameters:
      receiverName - The name of the person receiving the invoice profile.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • receiverAddress

      InvoiceProfile.Builder receiverAddress(ReceiverAddress receiverAddress)

      The address of the receiver that will be printed on the invoice.

      Parameters:
      receiverAddress - The address of the receiver that will be printed on the invoice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • receiverAddress

      default InvoiceProfile.Builder receiverAddress(Consumer<ReceiverAddress.Builder> receiverAddress)

      The address of the receiver that will be printed on the invoice.

      This is a convenience method that creates an instance of the ReceiverAddress.Builder avoiding the need to create one manually via ReceiverAddress.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to receiverAddress(ReceiverAddress).

      Parameters:
      receiverAddress - a consumer that will call methods on ReceiverAddress.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • receiverEmail

      InvoiceProfile.Builder receiverEmail(String receiverEmail)

      The email address for the invoice profile receiver.

      Parameters:
      receiverEmail - The email address for the invoice profile receiver.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • issuer

      This specifies the issuing entity of the invoice.

      Parameters:
      issuer - This specifies the issuing entity of the invoice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • taxRegistrationNumber

      InvoiceProfile.Builder taxRegistrationNumber(String taxRegistrationNumber)

      Your Tax Registration Number (TRN) information.

      Parameters:
      taxRegistrationNumber - Your Tax Registration Number (TRN) information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.