Documentation ¶
Index ¶
- Constants
- type AdditionalDetails
- type Address
- type AllowanceDetails
- type ChargeDetails
- type CreditNoteDetails
- type DateTime
- func (m DateTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DateTime) MarshalBinary() ([]byte, error)
- func (m DateTime) MarshalJSON() ([]byte, error)
- func (m *DateTime) UnmarshalBinary(b []byte) error
- func (m *DateTime) UnmarshalJSON(b []byte) error
- func (m DateTime) Validate(formats strfmt.Registry) error
- type Decimal
- type Error
- type ErrorList
- type Invoice
- type InvoiceItem
- type ItemQuantity
- type Money
- type PartyIdentification
- type PaymentTerms
- type SubmitInvoicesRequest
- type SubmitInvoicesResponse
- func (m *SubmitInvoicesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SubmitInvoicesResponse) MarshalBinary() ([]byte, error)
- func (m *SubmitInvoicesResponse) UnmarshalBinary(b []byte) error
- func (m *SubmitInvoicesResponse) Validate(formats strfmt.Registry) error
- type TaxDetails
- type TaxRegistrationDetails
- func (m *TaxRegistrationDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *TaxRegistrationDetails) MarshalBinary() ([]byte, error)
- func (m *TaxRegistrationDetails) UnmarshalBinary(b []byte) error
- func (m *TaxRegistrationDetails) Validate(formats strfmt.Registry) error
- type TransactionID
Constants ¶
const ( // AdditionalDetailsTypeSUR captures enum value "SUR" AdditionalDetailsTypeSUR string = "SUR" // AdditionalDetailsTypeOCR captures enum value "OCR" AdditionalDetailsTypeOCR string = "OCR" // AdditionalDetailsTypeCartonCount captures enum value "CartonCount" AdditionalDetailsTypeCartonCount string = "CartonCount" )
const ( // AllowanceDetailsTypeDiscount captures enum value "Discount" AllowanceDetailsTypeDiscount string = "Discount" // AllowanceDetailsTypeDiscountIncentive captures enum value "DiscountIncentive" AllowanceDetailsTypeDiscountIncentive string = "DiscountIncentive" // AllowanceDetailsTypeDefective captures enum value "Defective" AllowanceDetailsTypeDefective string = "Defective" // AllowanceDetailsTypePromotional captures enum value "Promotional" AllowanceDetailsTypePromotional string = "Promotional" // AllowanceDetailsTypeUnsaleableMerchandise captures enum value "UnsaleableMerchandise" AllowanceDetailsTypeUnsaleableMerchandise string = "UnsaleableMerchandise" // AllowanceDetailsTypeSpecial captures enum value "Special" AllowanceDetailsTypeSpecial string = "Special" )
const ( // ChargeDetailsTypeFreight captures enum value "Freight" ChargeDetailsTypeFreight string = "Freight" // ChargeDetailsTypePacking captures enum value "Packing" ChargeDetailsTypePacking string = "Packing" // ChargeDetailsTypeDuty captures enum value "Duty" ChargeDetailsTypeDuty string = "Duty" // ChargeDetailsTypeService captures enum value "Service" ChargeDetailsTypeService string = "Service" // ChargeDetailsTypeSmallOrder captures enum value "SmallOrder" ChargeDetailsTypeSmallOrder string = "SmallOrder" // ChargeDetailsTypeInsurancePlacementCost captures enum value "InsurancePlacementCost" ChargeDetailsTypeInsurancePlacementCost string = "InsurancePlacementCost" // ChargeDetailsTypeInsuranceFee captures enum value "InsuranceFee" ChargeDetailsTypeInsuranceFee string = "InsuranceFee" // ChargeDetailsTypeSpecialHandlingService captures enum value "SpecialHandlingService" ChargeDetailsTypeSpecialHandlingService string = "SpecialHandlingService" // ChargeDetailsTypeCollectionAndRecyclingService captures enum value "CollectionAndRecyclingService" ChargeDetailsTypeCollectionAndRecyclingService string = "CollectionAndRecyclingService" // ChargeDetailsTypeEnvironmentalProtectionService captures enum value "EnvironmentalProtectionService" ChargeDetailsTypeEnvironmentalProtectionService string = "EnvironmentalProtectionService" // ChargeDetailsTypeTaxCollectedAtSource captures enum value "TaxCollectedAtSource" ChargeDetailsTypeTaxCollectedAtSource string = "TaxCollectedAtSource" )
const ( // InvoiceInvoiceTypeInvoice captures enum value "Invoice" InvoiceInvoiceTypeInvoice string = "Invoice" // InvoiceInvoiceTypeCreditNote captures enum value "CreditNote" InvoiceInvoiceTypeCreditNote string = "CreditNote" )
const ( // ItemQuantityUnitOfMeasureCases captures enum value "Cases" ItemQuantityUnitOfMeasureCases string = "Cases" // ItemQuantityUnitOfMeasureEaches captures enum value "Eaches" ItemQuantityUnitOfMeasureEaches string = "Eaches" )
const ( // PaymentTermsTypeBasic captures enum value "Basic" PaymentTermsTypeBasic string = "Basic" // PaymentTermsTypeEndOfMonth captures enum value "EndOfMonth" PaymentTermsTypeEndOfMonth string = "EndOfMonth" // PaymentTermsTypeFixedDate captures enum value "FixedDate" PaymentTermsTypeFixedDate string = "FixedDate" // PaymentTermsTypeProximo captures enum value "Proximo" PaymentTermsTypeProximo string = "Proximo" // PaymentTermsTypePaymentDueUponReceiptOfInvoice captures enum value "PaymentDueUponReceiptOfInvoice" PaymentTermsTypePaymentDueUponReceiptOfInvoice string = "PaymentDueUponReceiptOfInvoice" // PaymentTermsTypeLetterofCredit captures enum value "LetterofCredit" PaymentTermsTypeLetterofCredit string = "LetterofCredit" )
const ( // TaxDetailsTaxTypeCGST captures enum value "CGST" TaxDetailsTaxTypeCGST string = "CGST" // TaxDetailsTaxTypeSGST captures enum value "SGST" TaxDetailsTaxTypeSGST string = "SGST" // TaxDetailsTaxTypeCESS captures enum value "CESS" TaxDetailsTaxTypeCESS string = "CESS" // TaxDetailsTaxTypeUTGST captures enum value "UTGST" TaxDetailsTaxTypeUTGST string = "UTGST" // TaxDetailsTaxTypeIGST captures enum value "IGST" TaxDetailsTaxTypeIGST string = "IGST" // TaxDetailsTaxTypeMwStDot captures enum value "MwSt." TaxDetailsTaxTypeMwStDot string = "MwSt." // TaxDetailsTaxTypePST captures enum value "PST" TaxDetailsTaxTypePST string = "PST" // TaxDetailsTaxTypeTVA captures enum value "TVA" TaxDetailsTaxTypeTVA string = "TVA" // TaxDetailsTaxTypeVAT captures enum value "VAT" TaxDetailsTaxTypeVAT string = "VAT" // TaxDetailsTaxTypeGST captures enum value "GST" TaxDetailsTaxTypeGST string = "GST" // TaxDetailsTaxTypeST captures enum value "ST" TaxDetailsTaxTypeST string = "ST" // TaxDetailsTaxTypeConsumption captures enum value "Consumption" TaxDetailsTaxTypeConsumption string = "Consumption" // TaxDetailsTaxTypeMutuallyDefined captures enum value "MutuallyDefined" TaxDetailsTaxTypeMutuallyDefined string = "MutuallyDefined" // TaxDetailsTaxTypeDomesticVAT captures enum value "DomesticVAT" TaxDetailsTaxTypeDomesticVAT string = "DomesticVAT" )
const ( // TaxRegistrationDetailsTaxRegistrationTypeVAT captures enum value "VAT" TaxRegistrationDetailsTaxRegistrationTypeVAT string = "VAT" // TaxRegistrationDetailsTaxRegistrationTypeGST captures enum value "GST" TaxRegistrationDetailsTaxRegistrationTypeGST string = "GST" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalDetails ¶
type AdditionalDetails struct { // The detail of the additional information provided by the selling party. // Required: true Detail *string `json:"detail"` // The language code of the additional information detail. LanguageCode string `json:"languageCode,omitempty"` // The type of the additional information provided by the selling party. // Required: true // Enum: [SUR OCR CartonCount] Type *string `json:"type"` }
AdditionalDetails Additional information provided by the selling party for tax-related or any other purpose.
swagger:model AdditionalDetails
func (*AdditionalDetails) ContextValidate ¶
ContextValidate validates this additional details based on context it is used
func (*AdditionalDetails) MarshalBinary ¶
func (m *AdditionalDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AdditionalDetails) UnmarshalBinary ¶
func (m *AdditionalDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Address ¶
type Address struct { // First line of street address. // Required: true AddressLine1 *string `json:"addressLine1"` // Additional address information, if required. AddressLine2 string `json:"addressLine2,omitempty"` // Additional address information, if required. AddressLine3 string `json:"addressLine3,omitempty"` // The city where the person, business or institution is located. City string `json:"city,omitempty"` // The two digit country code. In ISO 3166-1 alpha-2 format. // Required: true // Max Length: 2 CountryCode *string `json:"countryCode"` // The county where person, business or institution is located. County string `json:"county,omitempty"` // The district where person, business or institution is located. District string `json:"district,omitempty"` // The name of the person, business or institution at that address. // Required: true Name *string `json:"name"` // The phone number of the person, business or institution located at that address. Phone string `json:"phone,omitempty"` // The postal or zip code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. PostalOrZipCode string `json:"postalOrZipCode,omitempty"` // The state or region where person, business or institution is located. StateOrRegion string `json:"stateOrRegion,omitempty"` }
Address A physical address.
swagger:model Address
func (*Address) ContextValidate ¶
ContextValidate validates this address based on context it is used
func (*Address) MarshalBinary ¶
MarshalBinary interface implementation
func (*Address) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AllowanceDetails ¶
type AllowanceDetails struct { // Total monetary amount related to this allowance. // Required: true AllowanceAmount *Money `json:"allowanceAmount"` // Description of the allowance. Description string `json:"description,omitempty"` // Tax amount details applied on this allowance. TaxDetails []*TaxDetails `json:"taxDetails"` // Type of the allowance applied. // Required: true // Enum: [Discount DiscountIncentive Defective Promotional UnsaleableMerchandise Special] Type *string `json:"type"` }
AllowanceDetails Monetary and tax details of the allowance.
swagger:model AllowanceDetails
func (*AllowanceDetails) ContextValidate ¶
ContextValidate validate this allowance details based on the context it is used
func (*AllowanceDetails) MarshalBinary ¶
func (m *AllowanceDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AllowanceDetails) UnmarshalBinary ¶
func (m *AllowanceDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChargeDetails ¶
type ChargeDetails struct { // Total monetary amount related to this charge. // Required: true ChargeAmount *Money `json:"chargeAmount"` // Description of the charge. Description string `json:"description,omitempty"` // Tax amount details applied on this charge. TaxDetails []*TaxDetails `json:"taxDetails"` // Type of the charge applied. // Required: true // Enum: [Freight Packing Duty Service SmallOrder InsurancePlacementCost InsuranceFee SpecialHandlingService CollectionAndRecyclingService EnvironmentalProtectionService TaxCollectedAtSource] Type *string `json:"type"` }
ChargeDetails Monetary and tax details of the charge.
swagger:model ChargeDetails
func (*ChargeDetails) ContextValidate ¶
ContextValidate validate this charge details based on the context it is used
func (*ChargeDetails) MarshalBinary ¶
func (m *ChargeDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChargeDetails) UnmarshalBinary ¶
func (m *ChargeDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreditNoteDetails ¶
type CreditNoteDetails struct { // Identifies the consignor reference number (VRET number), if generated by Amazon. ConsignorsReferenceNumber string `json:"consignorsReferenceNumber,omitempty"` // Identifies the COOP reference used for COOP agreement. Failure to provide the COOP reference number or the Debit Note number may lead to a rejection of the Credit Note. CoopReferenceNumber string `json:"coopReferenceNumber,omitempty"` // Debit Note Number as generated by Amazon. Recommended for Returns and COOP Credit Notes. DebitNoteNumber string `json:"debitNoteNumber,omitempty"` // Date that a return is received by the vendor. It is mandatory for Returns Credit Note. // Format: date-time GoodsReturnDate DateTime `json:"goodsReturnDate,omitempty"` // Original Invoice Number when sending a credit note relating to an existing invoice. One Invoice only to be processed per Credit Note. This is mandatory for AP Credit Notes. ReferenceInvoiceNumber string `json:"referenceInvoiceNumber,omitempty"` // Identifies the Returns Notice Number. Mandatory for all Returns Credit Notes. ReturnsReferenceNumber string `json:"returnsReferenceNumber,omitempty"` // Identifies the Returned Merchandise Authorization ID, if generated. RmaID string `json:"rmaId,omitempty"` }
CreditNoteDetails References required in order to process a credit note. This information is required only if InvoiceType is CreditNote.
swagger:model CreditNoteDetails
func (*CreditNoteDetails) ContextValidate ¶
ContextValidate validate this credit note details based on the context it is used
func (*CreditNoteDetails) MarshalBinary ¶
func (m *CreditNoteDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreditNoteDetails) UnmarshalBinary ¶
func (m *CreditNoteDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DateTime ¶
DateTime Defines a date and time according to ISO8601.
swagger:model DateTime
func (DateTime) ContextValidate ¶
ContextValidate validates this date time based on context it is used
func (*DateTime) MarshalBinary ¶
MarshalBinary interface implementation
func (DateTime) MarshalJSON ¶
MarshalJSON retrieves a DateTime value as JSON output
func (*DateTime) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON sets a DateTime value from JSON input
type Decimal ¶
type Decimal string
Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.
swagger:model Decimal
func (Decimal) ContextValidate ¶
ContextValidate validates this decimal based on context it is used
type Error ¶
type Error struct { // An error code that identifies the type of error that occurred. // Required: true Code *string `json:"code"` // Additional details that can help the caller understand or fix the issue. Details string `json:"details,omitempty"` // A message that describes the error condition. // Required: true Message *string `json:"message"` }
Error Error response returned when the request is unsuccessful.
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorList ¶
type ErrorList []*Error
ErrorList A list of error responses returned when a request is unsuccessful.
swagger:model ErrorList
func (ErrorList) ContextValidate ¶
ContextValidate validate this error list based on the context it is used
type Invoice ¶
type Invoice struct { // Additional details provided by the selling party, for tax related or other purposes. AdditionalDetails []*AdditionalDetails `json:"additionalDetails"` // Total allowance amount details for all line items. AllowanceDetails []*AllowanceDetails `json:"allowanceDetails"` // Name, address and tax details of the party to whom this invoice is issued. BillToParty *PartyIdentification `json:"billToParty,omitempty"` // Total charge amount details for all line items. ChargeDetails []*ChargeDetails `json:"chargeDetails"` // Date when the invoice/credit note information was generated in the origin's accounting system. The invoice date should be on or after the purchase order creation date. // Required: true // Format: date-time Date *DateTime `json:"date"` // Unique number relating to the charges defined in this document. This will be invoice number if the document type is Invoice or CreditNote number if the document type is Credit Note. Failure to provide this reference will result in a rejection. // Required: true ID *string `json:"id"` // Total monetary amount charged in the invoice or full value of credit note to be paid including all relevant taxes. It is the total amount of invoice (including charges, less allowances) before terms discount (if discount is applicable). // Required: true InvoiceTotal *Money `json:"invoiceTotal"` // Identifies the type of invoice. // Required: true // Enum: [Invoice CreditNote] InvoiceType *string `json:"invoiceType"` // The list of invoice items. Items []*InvoiceItem `json:"items"` // The payment terms for the invoice. PaymentTerms *PaymentTerms `json:"paymentTerms,omitempty"` // An additional unique reference number used for regulatory or other purposes. ReferenceNumber string `json:"referenceNumber,omitempty"` // Name, address and tax details of the party receiving the payment of this invoice. // Required: true RemitToParty *PartyIdentification `json:"remitToParty"` // Name, address and tax details of the party sending a shipment of products. ShipFromParty *PartyIdentification `json:"shipFromParty,omitempty"` // Name, address and tax details of the party receiving a shipment of products. ShipToParty *PartyIdentification `json:"shipToParty,omitempty"` // Total tax amount details for all line items. TaxDetails []*TaxDetails `json:"taxDetails"` }
Invoice invoice
swagger:model Invoice
func (*Invoice) ContextValidate ¶
ContextValidate validate this invoice based on the context it is used
func (*Invoice) MarshalBinary ¶
MarshalBinary interface implementation
func (*Invoice) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type InvoiceItem ¶
type InvoiceItem struct { // Individual allowance details per line item. AllowanceDetails []*AllowanceDetails `json:"allowanceDetails"` // Amazon Standard Identification Number (ASIN) of an item. AmazonProductIdentifier string `json:"amazonProductIdentifier,omitempty"` // Individual charge details per line item. ChargeDetails []*ChargeDetails `json:"chargeDetails"` // Details required in order to process a credit note. This information is required only if invoiceType is CreditNote. CreditNoteDetails *CreditNoteDetails `json:"creditNoteDetails,omitempty"` // HSN Tax code. The HSN number cannot contain alphabets. HsnCode string `json:"hsnCode,omitempty"` // Invoiced quantity of this item. Quantity must be greater than zero. // Required: true InvoicedQuantity *ItemQuantity `json:"invoicedQuantity"` // Unique number related to this line item. // Required: true ItemSequenceNumber *int64 `json:"itemSequenceNumber"` // The item cost to Amazon, which should match the cost on the order. Price information should not be zero or negative. It indicates net unit price. Net cost means VAT is not included in cost. // Required: true NetCost *Money `json:"netCost"` // The Amazon purchase order number for this invoiced line item. Formatting Notes: 8-character alpha-numeric code. This value is mandatory only when invoiceType is Invoice, and is not required when invoiceType is CreditNote. PurchaseOrderNumber string `json:"purchaseOrderNumber,omitempty"` // Individual tax details per line item. TaxDetails []*TaxDetails `json:"taxDetails"` // The vendor selected product identifier of the item. Should be the same as was provided in the purchase order. VendorProductIdentifier string `json:"vendorProductIdentifier,omitempty"` }
InvoiceItem Details of the item being invoiced.
swagger:model InvoiceItem
func (*InvoiceItem) ContextValidate ¶
ContextValidate validate this invoice item based on the context it is used
func (*InvoiceItem) MarshalBinary ¶
func (m *InvoiceItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InvoiceItem) UnmarshalBinary ¶
func (m *InvoiceItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ItemQuantity ¶
type ItemQuantity struct { // Quantity of an item. This value should not be zero. // Required: true Amount *int64 `json:"amount"` // Unit of measure for the quantity. // Required: true // Enum: [Cases Eaches] UnitOfMeasure *string `json:"unitOfMeasure"` // The case size, if the unit of measure value is Cases. UnitSize int64 `json:"unitSize,omitempty"` }
ItemQuantity Details of quantity.
swagger:model ItemQuantity
func (*ItemQuantity) ContextValidate ¶
ContextValidate validates this item quantity based on context it is used
func (*ItemQuantity) MarshalBinary ¶
func (m *ItemQuantity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ItemQuantity) UnmarshalBinary ¶
func (m *ItemQuantity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Money ¶
type Money struct { // amount Amount Decimal `json:"amount,omitempty"` // Three-digit currency code in ISO 4217 format. CurrencyCode string `json:"currencyCode,omitempty"` }
Money An amount of money, including units in the form of currency.
swagger:model Money
func (*Money) ContextValidate ¶
ContextValidate validate this money based on the context it is used
func (*Money) MarshalBinary ¶
MarshalBinary interface implementation
func (*Money) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PartyIdentification ¶
type PartyIdentification struct { // Identification of the party by address. Address *Address `json:"address,omitempty"` // Assigned identification for the party. // Required: true PartyID *string `json:"partyId"` // Tax registration details of the party. TaxRegistrationDetails []*TaxRegistrationDetails `json:"taxRegistrationDetails"` }
PartyIdentification party identification
swagger:model PartyIdentification
func (*PartyIdentification) ContextValidate ¶
ContextValidate validate this party identification based on the context it is used
func (*PartyIdentification) MarshalBinary ¶
func (m *PartyIdentification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PartyIdentification) UnmarshalBinary ¶
func (m *PartyIdentification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PaymentTerms ¶
type PaymentTerms struct { // The number of calendar days from the Base date (Invoice date) until the discount is no longer valid. DiscountDueDays float64 `json:"discountDueDays,omitempty"` // The discount percent value, which is good until the discount due date. DiscountPercent Decimal `json:"discountPercent,omitempty"` // The number of calendar days from the base date (invoice date) until the total amount on the invoice is due. NetDueDays float64 `json:"netDueDays,omitempty"` // The payment term type for the invoice. // Enum: [Basic EndOfMonth FixedDate Proximo PaymentDueUponReceiptOfInvoice LetterofCredit] Type string `json:"type,omitempty"` }
PaymentTerms Terms of the payment for the invoice. The basis of the payment terms is the invoice date.
swagger:model PaymentTerms
func (*PaymentTerms) ContextValidate ¶
ContextValidate validate this payment terms based on the context it is used
func (*PaymentTerms) MarshalBinary ¶
func (m *PaymentTerms) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PaymentTerms) UnmarshalBinary ¶
func (m *PaymentTerms) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SubmitInvoicesRequest ¶
type SubmitInvoicesRequest struct { // invoices Invoices []*Invoice `json:"invoices"` }
SubmitInvoicesRequest The request schema for the submitInvoices operation.
swagger:model SubmitInvoicesRequest
func (*SubmitInvoicesRequest) ContextValidate ¶
ContextValidate validate this submit invoices request based on the context it is used
func (*SubmitInvoicesRequest) MarshalBinary ¶
func (m *SubmitInvoicesRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubmitInvoicesRequest) UnmarshalBinary ¶
func (m *SubmitInvoicesRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SubmitInvoicesResponse ¶
type SubmitInvoicesResponse struct { // errors Errors ErrorList `json:"errors,omitempty"` // The response payload for the submitInvoices operation. Payload *TransactionID `json:"payload,omitempty"` }
SubmitInvoicesResponse The response schema for the submitInvoices operation.
swagger:model SubmitInvoicesResponse
func (*SubmitInvoicesResponse) ContextValidate ¶
func (m *SubmitInvoicesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this submit invoices response based on the context it is used
func (*SubmitInvoicesResponse) MarshalBinary ¶
func (m *SubmitInvoicesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubmitInvoicesResponse) UnmarshalBinary ¶
func (m *SubmitInvoicesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TaxDetails ¶
type TaxDetails struct { // Total tax amount applied on invoice total or an item total. // Required: true TaxAmount *Money `json:"taxAmount"` // Tax percentage applied. Percentage must be expressed in decimal. TaxRate Decimal `json:"taxRate,omitempty"` // Type of the tax applied. // Required: true // Enum: [CGST SGST CESS UTGST IGST MwSt. PST TVA VAT GST ST Consumption MutuallyDefined DomesticVAT] TaxType *string `json:"taxType"` // The invoice amount that is taxable at the rate specified in the tax rate field. TaxableAmount *Money `json:"taxableAmount,omitempty"` }
TaxDetails Details of tax amount applied.
swagger:model TaxDetails
func (*TaxDetails) ContextValidate ¶
ContextValidate validate this tax details based on the context it is used
func (*TaxDetails) MarshalBinary ¶
func (m *TaxDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TaxDetails) UnmarshalBinary ¶
func (m *TaxDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TaxRegistrationDetails ¶
type TaxRegistrationDetails struct { // The tax registration number for the entity. For example, VAT ID, Consumption Tax ID. // Required: true TaxRegistrationNumber *string `json:"taxRegistrationNumber"` // The tax registration type for the entity. // Required: true // Enum: [VAT GST] TaxRegistrationType *string `json:"taxRegistrationType"` }
TaxRegistrationDetails Tax registration details of the entity.
swagger:model TaxRegistrationDetails
func (*TaxRegistrationDetails) ContextValidate ¶
func (m *TaxRegistrationDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this tax registration details based on context it is used
func (*TaxRegistrationDetails) MarshalBinary ¶
func (m *TaxRegistrationDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TaxRegistrationDetails) UnmarshalBinary ¶
func (m *TaxRegistrationDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransactionID ¶
type TransactionID struct { // GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction. TransactionID string `json:"transactionId,omitempty"` }
TransactionID transaction Id
swagger:model TransactionId
func (*TransactionID) ContextValidate ¶
ContextValidate validates this transaction Id based on context it is used
func (*TransactionID) MarshalBinary ¶
func (m *TransactionID) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransactionID) UnmarshalBinary ¶
func (m *TransactionID) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- additional_details.go
- address.go
- allowance_details.go
- charge_details.go
- credit_note_details.go
- date_time.go
- decimal.go
- error.go
- error_list.go
- invoice.go
- invoice_item.go
- item_quantity.go
- money.go
- party_identification.go
- payment_terms.go
- submit_invoices_request.go
- submit_invoices_response.go
- tax_details.go
- tax_registration_details.go
- transaction_id.go