Values.InvoiceSummarySourceThe invoice that the API retrieved.
type nonrec t = {accountId : AccountIdString.t option;The Amazon Web Services account ID.
*)invoiceId : BasicString.t option;The invoice ID.
*)issuedDate : Timestamp.t option;The issued date of the invoice.
*)dueDate : Timestamp.t option;The invoice due date.
*)billSourceAccounts : BillSourceAccountList.t option;The list of Amazon Web Services account IDs that are the bill source of the invoice. Currently, only a single bill source account is returned.
*)billSourceAccountsTotalCount : Integer.t option;The total number of accounts that are the bill source of the invoice.
*)receiverRole : ReceiverRole.t option;The role of the invoice receiver.
*)entity : Entity.t option;The organization name providing Amazon Web Services services.
*)billingPeriod : BillingPeriod.t option;The billing period of the invoice-related document.
*)invoiceFrequency : InvoiceFrequency.t option;The frequency of the invoice.
*)billType : BillType.t option;The type of the bill.
*)invoiceType : InvoiceType.t option;The type of invoice.
*)commercialInvoiceId : BasicString.t option;The commercial invoice ID. This is only applicable for tax invoices and identifies the associated commercial invoice.
*)originalInvoiceId : BasicString.t option;The initial or original invoice ID.
*)purchaseOrderNumber : BasicString.t option;The purchase order number associated to the invoice.
*)einvoiceDeliveryStatus : EinvoiceDeliveryStatus.t option;The e-invoice delivery status.
*)taxAuthorityStatus : TaxAuthorityStatus.t option;The current status of an invoice as reported to the tax authority. This captures scenarios where an invoice may be cancelled after issuance.
*)baseCurrencyAmount : InvoiceCurrencyAmount.t option;The summary with the product and service currency.
*)taxCurrencyAmount : InvoiceCurrencyAmount.t option;The summary with the tax currency.
*)paymentCurrencyAmount : InvoiceCurrencyAmount.t option;The summary with the customer configured currency.
*)}val make :
?accountId:??? ->
?invoiceId:??? ->
?issuedDate:??? ->
?dueDate:??? ->
?billSourceAccounts:??? ->
?billSourceAccountsTotalCount:??? ->
?receiverRole:??? ->
?entity:??? ->
?billingPeriod:??? ->
?invoiceFrequency:??? ->
?billType:??? ->
?invoiceType:??? ->
?commercialInvoiceId:??? ->
?originalInvoiceId:??? ->
?purchaseOrderNumber:??? ->
?einvoiceDeliveryStatus:??? ->
?taxAuthorityStatus:??? ->
?baseCurrencyAmount:??? ->
?taxCurrencyAmount:??? ->
?paymentCurrencyAmount:??? ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `Integer of Integer.t
| `List of [> `String of AccountIdString.t ] list
| `String of AccountIdString.t
| `Structure of
(string
* [> `Enum of string
| `Integer of Month.t
| `String of BasicString.t
| `Structure of
(string
* [> `String of BasicString.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of BasicString.t ])
list ]
list
| `String of BasicString.t ])
list ])
list ])
list
| `Timestamp of Timestamp.t ])
list ]