vendor_invoices_models

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const (

	// InvoiceInvoiceTypeInvoice captures enum value "Invoice"
	InvoiceInvoiceTypeInvoice string = "Invoice"

	// InvoiceInvoiceTypeCreditNote captures enum value "CreditNote"
	InvoiceInvoiceTypeCreditNote string = "CreditNote"
)
View Source
const (

	// ItemQuantityUnitOfMeasureCases captures enum value "Cases"
	ItemQuantityUnitOfMeasureCases string = "Cases"

	// ItemQuantityUnitOfMeasureEaches captures enum value "Eaches"
	ItemQuantityUnitOfMeasureEaches string = "Eaches"
)
View Source
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"
)
View Source
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"
)
View Source
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

func (m *AdditionalDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*AdditionalDetails) Validate

func (m *AdditionalDetails) Validate(formats strfmt.Registry) error

Validate validates this additional details

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

func (m *Address) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this address based on context it is used

func (*Address) MarshalBinary

func (m *Address) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Address) UnmarshalBinary

func (m *Address) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Address) Validate

func (m *Address) Validate(formats strfmt.Registry) error

Validate validates this address

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

func (m *AllowanceDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*AllowanceDetails) Validate

func (m *AllowanceDetails) Validate(formats strfmt.Registry) error

Validate validates this allowance details

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

func (m *ChargeDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ChargeDetails) Validate

func (m *ChargeDetails) Validate(formats strfmt.Registry) error

Validate validates this charge details

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

func (m *CreditNoteDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*CreditNoteDetails) Validate

func (m *CreditNoteDetails) Validate(formats strfmt.Registry) error

Validate validates this credit note details

type DateTime

type DateTime strfmt.DateTime

DateTime Defines a date and time according to ISO8601.

swagger:model DateTime

func (DateTime) ContextValidate

func (m DateTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this date time based on context it is used

func (*DateTime) MarshalBinary

func (m *DateTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DateTime) MarshalJSON

func (m DateTime) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a DateTime value as JSON output

func (*DateTime) UnmarshalBinary

func (m *DateTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DateTime) UnmarshalJSON

func (m *DateTime) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a DateTime value from JSON input

func (DateTime) Validate

func (m DateTime) Validate(formats strfmt.Registry) error

Validate validates this date time

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

func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this decimal based on context it is used

func (Decimal) Validate

func (m Decimal) Validate(formats strfmt.Registry) error

Validate validates this decimal

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

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorList

type ErrorList []*Error

ErrorList A list of error responses returned when a request is unsuccessful.

swagger:model ErrorList

func (ErrorList) ContextValidate

func (m ErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error list based on the context it is used

func (ErrorList) Validate

func (m ErrorList) Validate(formats strfmt.Registry) error

Validate validates this error list

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

func (m *Invoice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this invoice based on the context it is used

func (*Invoice) MarshalBinary

func (m *Invoice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Invoice) UnmarshalBinary

func (m *Invoice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Invoice) Validate

func (m *Invoice) Validate(formats strfmt.Registry) error

Validate validates this invoice

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

func (m *InvoiceItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*InvoiceItem) Validate

func (m *InvoiceItem) Validate(formats strfmt.Registry) error

Validate validates this invoice item

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

func (m *ItemQuantity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ItemQuantity) Validate

func (m *ItemQuantity) Validate(formats strfmt.Registry) error

Validate validates this item quantity

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

func (m *Money) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this money based on the context it is used

func (*Money) MarshalBinary

func (m *Money) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Money) UnmarshalBinary

func (m *Money) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Money) Validate

func (m *Money) Validate(formats strfmt.Registry) error

Validate validates this money

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

func (m *PartyIdentification) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PartyIdentification) Validate

func (m *PartyIdentification) Validate(formats strfmt.Registry) error

Validate validates this party identification

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

func (m *PaymentTerms) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PaymentTerms) Validate

func (m *PaymentTerms) Validate(formats strfmt.Registry) error

Validate validates this payment terms

type SubmitInvoicesRequest

type SubmitInvoicesRequest struct {

	// invoices
	Invoices []*Invoice `json:"invoices"`
}

SubmitInvoicesRequest The request schema for the submitInvoices operation.

swagger:model SubmitInvoicesRequest

func (*SubmitInvoicesRequest) ContextValidate

func (m *SubmitInvoicesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*SubmitInvoicesRequest) Validate

func (m *SubmitInvoicesRequest) Validate(formats strfmt.Registry) error

Validate validates this submit invoices request

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

func (*SubmitInvoicesResponse) Validate

func (m *SubmitInvoicesResponse) Validate(formats strfmt.Registry) error

Validate validates this submit invoices response

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

func (m *TaxDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*TaxDetails) Validate

func (m *TaxDetails) Validate(formats strfmt.Registry) error

Validate validates this tax details

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

func (*TaxRegistrationDetails) Validate

func (m *TaxRegistrationDetails) Validate(formats strfmt.Registry) error

Validate validates this tax registration details

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

func (m *TransactionID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*TransactionID) Validate

func (m *TransactionID) Validate(formats strfmt.Registry) error

Validate validates this transaction Id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL