Interface InvoicePDF.Builder

  • Method Details

    • invoiceId

      InvoicePDF.Builder invoiceId(String invoiceId)

      Your unique invoice ID.

      Parameters:
      invoiceId - Your unique invoice ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentUrl

      InvoicePDF.Builder documentUrl(String documentUrl)

      The pre-signed URL to download the invoice document.

      Parameters:
      documentUrl - The pre-signed URL to download the invoice document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentUrlExpirationDate

      InvoicePDF.Builder documentUrlExpirationDate(Instant documentUrlExpirationDate)

      The pre-signed URL expiration date of the invoice document.

      Parameters:
      documentUrlExpirationDate - The pre-signed URL expiration date of the invoice document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supplementalDocuments

      InvoicePDF.Builder supplementalDocuments(Collection<SupplementalDocument> supplementalDocuments)

      List of supplemental documents associated with the invoice.

      Parameters:
      supplementalDocuments - List of supplemental documents associated with the invoice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supplementalDocuments

      InvoicePDF.Builder supplementalDocuments(SupplementalDocument... supplementalDocuments)

      List of supplemental documents associated with the invoice.

      Parameters:
      supplementalDocuments - List of supplemental documents associated with the invoice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supplementalDocuments

      InvoicePDF.Builder supplementalDocuments(Consumer<SupplementalDocument.Builder>... supplementalDocuments)

      List of supplemental documents associated with the invoice.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to supplementalDocuments(List<SupplementalDocument>).

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