Class InvoiceSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InvoiceSummary.Builder,InvoiceSummary>
The invoice that the API retrieved.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Amazon Web Services account ID.final InvoiceCurrencyAmountThe summary with the product and service currency.final BillingPeriodThe billing period of the invoice-related document.The list of Amazon Web Services account IDs that are the bill source of the invoice.final IntegerThe total number of accounts that are the bill source of the invoice.final BillTypebillType()The type of the bill.final StringThe type of the bill.static InvoiceSummary.Builderbuilder()final StringThe commercial invoice ID.final InstantdueDate()The invoice due date.final EinvoiceDeliveryStatusThe e-invoice delivery status.final StringThe e-invoice delivery status.final Entityentity()The organization name providing Amazon Web Services services.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the BillSourceAccounts property.final inthashCode()final InvoiceFrequencyThe frequency of the invoice.final StringThe frequency of the invoice.final StringThe invoice ID.final InvoiceTypeThe type of invoice.final StringThe type of invoice.final InstantThe issued date of the invoice.final StringThe initial or original invoice ID.final InvoiceCurrencyAmountThe summary with the customer configured currency.final StringThe purchase order number associated to the invoice.final ReceiverRoleThe role of the invoice receiver.final StringThe role of the invoice receiver.static Class<? extends InvoiceSummary.Builder> final TaxAuthorityStatusThe current status of an invoice as reported to the tax authority.final StringThe current status of an invoice as reported to the tax authority.final InvoiceCurrencyAmountThe summary with the tax currency.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accountId
The Amazon Web Services account ID.
- Returns:
- The Amazon Web Services account ID.
-
invoiceId
-
issuedDate
The issued date of the invoice.
- Returns:
- The issued date of the invoice.
-
dueDate
-
hasBillSourceAccounts
public final boolean hasBillSourceAccounts()For responses, this returns true if the service returned a value for the BillSourceAccounts property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
billSourceAccounts
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasBillSourceAccounts()method.- Returns:
- 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
The total number of accounts that are the bill source of the invoice.
- Returns:
- The total number of accounts that are the bill source of the invoice.
-
receiverRole
The role of the invoice receiver.
If the service returns an enum value that is not available in the current SDK version,
receiverRolewill returnReceiverRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreceiverRoleAsString().- Returns:
- The role of the invoice receiver.
- See Also:
-
receiverRoleAsString
The role of the invoice receiver.
If the service returns an enum value that is not available in the current SDK version,
receiverRolewill returnReceiverRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreceiverRoleAsString().- Returns:
- The role of the invoice receiver.
- See Also:
-
entity
The organization name providing Amazon Web Services services.
- Returns:
- The organization name providing Amazon Web Services services.
-
billingPeriod
The billing period of the invoice-related document.
- Returns:
- The billing period of the invoice-related document.
-
invoiceFrequency
The frequency of the invoice.
If the service returns an enum value that is not available in the current SDK version,
invoiceFrequencywill returnInvoiceFrequency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominvoiceFrequencyAsString().- Returns:
- The frequency of the invoice.
- See Also:
-
invoiceFrequencyAsString
The frequency of the invoice.
If the service returns an enum value that is not available in the current SDK version,
invoiceFrequencywill returnInvoiceFrequency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominvoiceFrequencyAsString().- Returns:
- The frequency of the invoice.
- See Also:
-
billType
The type of the bill.
If the service returns an enum value that is not available in the current SDK version,
billTypewill returnBillType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombillTypeAsString().- Returns:
- The type of the bill.
- See Also:
-
billTypeAsString
The type of the bill.
If the service returns an enum value that is not available in the current SDK version,
billTypewill returnBillType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombillTypeAsString().- Returns:
- The type of the bill.
- See Also:
-
invoiceType
The type of invoice.
If the service returns an enum value that is not available in the current SDK version,
invoiceTypewill returnInvoiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominvoiceTypeAsString().- Returns:
- The type of invoice.
- See Also:
-
invoiceTypeAsString
The type of invoice.
If the service returns an enum value that is not available in the current SDK version,
invoiceTypewill returnInvoiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominvoiceTypeAsString().- Returns:
- The type of invoice.
- See Also:
-
commercialInvoiceId
The commercial invoice ID. This is only applicable for tax invoices and identifies the associated commercial invoice.
- Returns:
- The commercial invoice ID. This is only applicable for tax invoices and identifies the associated commercial invoice.
-
originalInvoiceId
The initial or original invoice ID.
- Returns:
- The initial or original invoice ID.
-
purchaseOrderNumber
The purchase order number associated to the invoice.
- Returns:
- The purchase order number associated to the invoice.
-
einvoiceDeliveryStatus
The e-invoice delivery status.
If the service returns an enum value that is not available in the current SDK version,
einvoiceDeliveryStatuswill returnEinvoiceDeliveryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeinvoiceDeliveryStatusAsString().- Returns:
- The e-invoice delivery status.
- See Also:
-
einvoiceDeliveryStatusAsString
The e-invoice delivery status.
If the service returns an enum value that is not available in the current SDK version,
einvoiceDeliveryStatuswill returnEinvoiceDeliveryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeinvoiceDeliveryStatusAsString().- Returns:
- The e-invoice delivery status.
- See Also:
-
taxAuthorityStatus
The current status of an invoice as reported to the tax authority. This captures scenarios where an invoice may be cancelled after issuance.
If the service returns an enum value that is not available in the current SDK version,
taxAuthorityStatuswill returnTaxAuthorityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaxAuthorityStatusAsString().- Returns:
- The current status of an invoice as reported to the tax authority. This captures scenarios where an invoice may be cancelled after issuance.
- See Also:
-
taxAuthorityStatusAsString
The current status of an invoice as reported to the tax authority. This captures scenarios where an invoice may be cancelled after issuance.
If the service returns an enum value that is not available in the current SDK version,
taxAuthorityStatuswill returnTaxAuthorityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaxAuthorityStatusAsString().- Returns:
- The current status of an invoice as reported to the tax authority. This captures scenarios where an invoice may be cancelled after issuance.
- See Also:
-
baseCurrencyAmount
The summary with the product and service currency.
- Returns:
- The summary with the product and service currency.
-
taxCurrencyAmount
The summary with the tax currency.
- Returns:
- The summary with the tax currency.
-
paymentCurrencyAmount
The summary with the customer configured currency.
- Returns:
- The summary with the customer configured currency.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InvoiceSummary.Builder,InvoiceSummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-