InvoiceV4Document
extends Prediction
in package
Invoice API version 4.9 document data.
Table of Contents
Properties
- $billingAddress : StringField
- $customerAddress : StringField
- $customerCompanyRegistrations : array<string|int, CompanyRegistrationField>
- $customerId : StringField
- $customerName : StringField
- $date : DateField
- $documentType : ClassificationField
- $dueDate : DateField
- $invoiceNumber : StringField
- $lineItems : InvoiceV4LineItems
- $locale : LocaleField
- $paymentDate : DateField
- $poNumber : StringField
- $referenceNumbers : array<string|int, StringField>
- $shippingAddress : StringField
- $supplierAddress : StringField
- $supplierCompanyRegistrations : array<string|int, CompanyRegistrationField>
- $supplierEmail : StringField
- $supplierName : StringField
- $supplierPaymentDetails : array<string|int, PaymentDetailsField>
- $supplierPhoneNumber : StringField
- $supplierWebsite : StringField
- $taxes : Taxes
- $totalAmount : AmountField
- $totalNet : AmountField
- $totalTax : AmountField
Methods
- __construct() : mixed
- __toString() : string
Properties
$billingAddress
public
StringField
$billingAddress
The customer's address used for billing.
$customerAddress
public
StringField
$customerAddress
The address of the customer.
$customerCompanyRegistrations
public
array<string|int, CompanyRegistrationField>
$customerCompanyRegistrations
List of company registrations associated to the customer.
$customerId
public
StringField
$customerId
The customer account number or identifier from the supplier.
$customerName
public
StringField
$customerName
The name of the customer or client.
$date
public
DateField
$date
The date the purchase was made.
$documentType
public
ClassificationField
$documentType
One of: 'INVOICE', 'CREDIT NOTE'.
$dueDate
public
DateField
$dueDate
The date on which the payment is due.
$invoiceNumber
public
StringField
$invoiceNumber
The invoice number or identifier.
$lineItems
public
InvoiceV4LineItems
$lineItems
List of line item details.
$locale
public
LocaleField
$locale
The locale detected on the document.
$paymentDate
public
DateField
$paymentDate
The date on which the payment is due/ was full-filled.
$poNumber
public
StringField
$poNumber
The purchase order number.
$referenceNumbers
public
array<string|int, StringField>
$referenceNumbers
List of Reference numbers, including PO number.
$shippingAddress
public
StringField
$shippingAddress
Customer's delivery address.
$supplierAddress
public
StringField
$supplierAddress
The address of the supplier or merchant.
$supplierCompanyRegistrations
public
array<string|int, CompanyRegistrationField>
$supplierCompanyRegistrations
List of company registrations associated to the supplier.
$supplierEmail
public
StringField
$supplierEmail
The email of the supplier or merchant.
$supplierName
public
StringField
$supplierName
The name of the supplier or merchant.
$supplierPaymentDetails
public
array<string|int, PaymentDetailsField>
$supplierPaymentDetails
List of payment details associated to the supplier.
$supplierPhoneNumber
public
StringField
$supplierPhoneNumber
The phone number of the supplier or merchant.
$supplierWebsite
public
StringField
$supplierWebsite
The website URL of the supplier or merchant.
$taxes
public
Taxes
$taxes
List of tax line details.
$totalAmount
public
AmountField
$totalAmount
The total amount paid: includes taxes, tips, fees, and other charges.
$totalNet
public
AmountField
$totalNet
The net amount paid: does not include taxes, fees, and discounts.
$totalTax
public
AmountField
$totalTax
The total tax: includes all the taxes paid for this invoice.
Methods
__construct()
public
__construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction from HTTP response.
- $pageId : int|null = null
-
Page number for multi pages document.
Tags
__toString()
public
__toString() : string
Return values
string —String representation.