Documentation
¶
Index ¶
- type Address
- type EncryptionData
- func EncryptionDataAdd(ksn string, trackNumber string) *EncryptionData
- func EncryptionDataSetKSNAndEncryptedData(ktb string, ksn string) *EncryptionData
- func EncryptionDataSetKtbAndKsn(ktb string, ksn string) *EncryptionData
- func EncryptionDataVersion1() *EncryptionData
- func EncryptionDataVersion2(ktb string, trackNumber ...string) *EncryptionData
- func (e *EncryptionData) GetKsn() string
- func (e *EncryptionData) GetKtb() string
- func (e *EncryptionData) GetTrackNumber() string
- func (e *EncryptionData) GetVersion() string
- func (e *EncryptionData) SetKsn(ksn string)
- func (e *EncryptionData) SetKtb(ktb string)
- func (e *EncryptionData) SetTrackNumber(trackNumber string)
- func (e *EncryptionData) SetVersion(version string)
- type OrderDetails
- type PhoneNumber
- type Product
- func (p *Product) GetDescription() string
- func (p *Product) GetDiscountAmount() *decimal.Decimal
- func (p *Product) GetGift() bool
- func (p *Product) GetGiftCardCurrency() string
- func (p *Product) GetImageUrl() string
- func (p *Product) GetNetUnitAmount() *decimal.Decimal
- func (p *Product) GetNetUnitPrice() *decimal.Decimal
- func (p *Product) GetProductId() string
- func (p *Product) GetProductName() string
- func (p *Product) GetQuantity() int
- func (p *Product) GetRisk() string
- func (p *Product) GetTaxAmount() *decimal.Decimal
- func (p *Product) GetTaxPercentage() *decimal.Decimal
- func (p *Product) GetType() string
- func (p *Product) GetUnitCurrency() string
- func (p *Product) GetUnitPrice() *decimal.Decimal
- func (p *Product) GetUrl() string
- func (p *Product) SetDescription(description string)
- func (p *Product) SetDiscountAmount(discountAmount *decimal.Decimal)
- func (p *Product) SetGift(gift bool)
- func (p *Product) SetGiftCardCurrency(giftCardCurrency string)
- func (p *Product) SetImageUrl(imageUrl string)
- func (p *Product) SetNetUnitAmount(netUnitAmount *decimal.Decimal)
- func (p *Product) SetNetUnitPrice(netUnitPrice *decimal.Decimal)
- func (p *Product) SetProductId(productId string)
- func (p *Product) SetProductName(productName string)
- func (p *Product) SetQuantity(quantity int)
- func (p *Product) SetRisk(risk string)
- func (p *Product) SetTaxAmount(taxAmount *decimal.Decimal)
- func (p *Product) SetTaxPercentage(taxPercentage *decimal.Decimal)
- func (p *Product) SetType(typeValue string)
- func (p *Product) SetUnitCurrency(unitCurrency string)
- func (p *Product) SetUnitPrice(unitPrice *decimal.Decimal)
- func (p *Product) SetUrl(url string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Type addresstype.AddressType
StreetAddr1 string
StreetAddr2 string
StreetAddr3 string
City string
Name string
Province string
PostalCode string
Country string
CountryCode string
}
func NewAddress ¶
func NewAddressWithStreet ¶
func (*Address) SetCountry ¶
func (*Address) SetCountryCode ¶
type EncryptionData ¶
type EncryptionData struct {
// contains filtered or unexported fields
}
func EncryptionDataAdd ¶
func EncryptionDataAdd(ksn string, trackNumber string) *EncryptionData
func EncryptionDataSetKSNAndEncryptedData ¶
func EncryptionDataSetKSNAndEncryptedData(ktb string, ksn string) *EncryptionData
func EncryptionDataSetKtbAndKsn ¶
func EncryptionDataSetKtbAndKsn(ktb string, ksn string) *EncryptionData
func EncryptionDataVersion1 ¶
func EncryptionDataVersion1() *EncryptionData
func EncryptionDataVersion2 ¶
func EncryptionDataVersion2(ktb string, trackNumber ...string) *EncryptionData
func (*EncryptionData) GetKsn ¶
func (e *EncryptionData) GetKsn() string
func (*EncryptionData) GetKtb ¶
func (e *EncryptionData) GetKtb() string
func (*EncryptionData) GetTrackNumber ¶
func (e *EncryptionData) GetTrackNumber() string
func (*EncryptionData) GetVersion ¶
func (e *EncryptionData) GetVersion() string
func (*EncryptionData) SetKsn ¶
func (e *EncryptionData) SetKsn(ksn string)
func (*EncryptionData) SetKtb ¶
func (e *EncryptionData) SetKtb(ktb string)
func (*EncryptionData) SetTrackNumber ¶
func (e *EncryptionData) SetTrackNumber(trackNumber string)
func (*EncryptionData) SetVersion ¶
func (e *EncryptionData) SetVersion(version string)
type OrderDetails ¶
type PhoneNumber ¶
func (*PhoneNumber) ToString ¶
func (p *PhoneNumber) ToString() string
type Product ¶
type Product struct {
ProductId string
ProductName string
Description string
Quantity int
UnitPrice *decimal.Decimal
NetUnitPrice *decimal.Decimal
Gift bool
UnitCurrency string
Type string
Risk string
TaxAmount *decimal.Decimal
TaxPercentage *decimal.Decimal
NetUnitAmount *decimal.Decimal
DiscountAmount *decimal.Decimal
GiftCardCurrency string
Url string
ImageUrl string
}
func (*Product) GetDiscountAmount ¶
DiscountAmount
func (*Product) GetGiftCardCurrency ¶
GiftCardCurrency
func (*Product) GetNetUnitAmount ¶
NetUnitAmount
func (*Product) GetTaxPercentage ¶
TaxPercentage
func (*Product) SetDescription ¶
func (*Product) SetDiscountAmount ¶
func (*Product) SetGiftCardCurrency ¶
func (*Product) SetImageUrl ¶
func (*Product) SetNetUnitAmount ¶
func (*Product) SetNetUnitPrice ¶
func (*Product) SetProductId ¶
func (*Product) SetProductName ¶
func (*Product) SetQuantity ¶
func (*Product) SetTaxAmount ¶
func (*Product) SetTaxPercentage ¶
func (*Product) SetUnitCurrency ¶
func (*Product) SetUnitPrice ¶
Click to show internal directories.
Click to hide internal directories.