2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
2021-01-19 16:58:40 +00:00
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
2021-01-08 17:40:28 +00:00
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package blaze_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
2021-02-09 16:56:57 +00:00
"context"
2021-01-08 17:40:28 +00:00
"strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// ShopResponse shop response
//
// swagger:model ShopResponse
type ShopResponse struct {
// company logo URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-public.s3.amazonaws.com/1d405589-9408-4f00-8b00-b30bfbc636d1.png
2021-01-08 17:40:28 +00:00
CompanyLogoURL string ` json:"companyLogoURL,omitempty" `
// shop
Shop * ShopResponseShop ` json:"shop,omitempty" `
// tolerance map
ToleranceMap * ShopResponseToleranceMap ` json:"toleranceMap,omitempty" `
}
// Validate validates this shop response
func ( m * ShopResponse ) Validate ( formats strfmt . Registry ) error {
var res [ ] error
if err := m . validateShop ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateToleranceMap ( formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponse ) validateShop ( formats strfmt . Registry ) error {
if swag . IsZero ( m . Shop ) { // not required
return nil
}
if m . Shop != nil {
if err := m . Shop . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" )
}
return err
}
}
return nil
}
func ( m * ShopResponse ) validateToleranceMap ( formats strfmt . Registry ) error {
if swag . IsZero ( m . ToleranceMap ) { // not required
return nil
}
if m . ToleranceMap != nil {
if err := m . ToleranceMap . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" )
}
return err
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this shop response based on the context it is used
func ( m * ShopResponse ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
var res [ ] error
if err := m . contextValidateShop ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateToleranceMap ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponse ) contextValidateShop ( ctx context . Context , formats strfmt . Registry ) error {
if m . Shop != nil {
if err := m . Shop . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" )
}
return err
}
}
return nil
}
func ( m * ShopResponse ) contextValidateToleranceMap ( ctx context . Context , formats strfmt . Registry ) error {
if m . ToleranceMap != nil {
if err := m . ToleranceMap . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" )
}
return err
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponse ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponse ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponse
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShop shop response shop
//
// swagger:model ShopResponseShop
type ShopResponseShop struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// address
Address * ShopResponseShopAddress ` json:"address,omitempty" `
// age limit
2021-02-09 16:56:57 +00:00
// Example: 21
2021-01-08 17:40:28 +00:00
AgeLimit float64 ` json:"ageLimit,omitempty" `
// al excise on zero price
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
AlExciseOnZeroPrice bool ` json:"alExciseOnZeroPrice,omitempty" `
// allow anonymous orders
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
AllowAnonymousOrders bool ` json:"allowAnonymousOrders,omitempty" `
// app target
2021-02-09 16:56:57 +00:00
// Example: Retail
2021-01-08 17:40:28 +00:00
AppTarget string ` json:"appTarget,omitempty" `
// assets
Assets [ ] * ShopResponseShopAssetsItems0 ` json:"assets" `
// auto cash drawer
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
AutoCashDrawer bool ` json:"autoCashDrawer,omitempty" `
// bcc email address
2021-02-09 16:56:57 +00:00
// Example: info@pineappleexpress.com
2021-01-08 17:40:28 +00:00
BccEmailAddress string ` json:"bccEmailAddress,omitempty" `
// cart minimums
CartMinimums * ShopResponseShopCartMinimums ` json:"cartMinimums,omitempty" `
// checkout type
2021-02-09 16:56:57 +00:00
// Example: Direct
2021-01-08 17:40:28 +00:00
CheckoutType string ` json:"checkoutType,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1553982501824
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// credit fefund type
2021-02-09 16:56:57 +00:00
// Example: NONE
2021-01-08 17:40:28 +00:00
CreditFefundType string ` json:"creditFefundType,omitempty" `
// default country
2021-02-09 16:56:57 +00:00
// Example: US
2021-01-08 17:40:28 +00:00
DefaultCountry string ` json:"defaultCountry,omitempty" `
// default pin timeout
2021-02-09 16:56:57 +00:00
// Example: 5
2021-01-08 17:40:28 +00:00
DefaultPinTimeout float64 ` json:"defaultPinTimeout,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// delivery fee
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
DeliveryFee float64 ` json:"deliveryFee,omitempty" `
// delivery refund type
2021-02-09 16:56:57 +00:00
// Example: NONE
2021-01-08 17:40:28 +00:00
DeliveryRefundType string ` json:"deliveryRefundType,omitempty" `
// email adress
2021-02-09 16:56:57 +00:00
// Example: support@pineappleexpress.com
2021-01-08 17:40:28 +00:00
EmailAdress string ` json:"emailAdress,omitempty" `
// email message
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
EmailMessage string ` json:"emailMessage,omitempty" `
// enable age limit
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableAgeLimit bool ` json:"enableAgeLimit,omitempty" `
// enable b c c receipt
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableBCCReceipt bool ` json:"enableBCCReceipt,omitempty" `
// enable cannabis limit
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableCannabisLimit bool ` json:"enableCannabisLimit,omitempty" `
// enable cash in out
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableCashInOut bool ` json:"enableCashInOut,omitempty" `
// enable daily summary email
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableDailySummaryEmail bool ` json:"enableDailySummaryEmail,omitempty" `
// enable delivery fee
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableDeliveryFee bool ` json:"enableDeliveryFee,omitempty" `
// enable delivery signature
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableDeliverySignature bool ` json:"enableDeliverySignature,omitempty" `
// enable excise tax
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableExciseTax bool ` json:"enableExciseTax,omitempty" `
// enable g p s tracking
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableGPSTracking bool ` json:"enableGPSTracking,omitempty" `
// enable harvest tax
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableHarvestTax bool ` json:"enableHarvestTax,omitempty" `
// enable low inventory email
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableLowInventoryEmail bool ` json:"enableLowInventoryEmail,omitempty" `
// enable medicinal age
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableMedicinalAge bool ` json:"enableMedicinalAge,omitempty" `
// enable on fleet
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableOnFleet bool ` json:"enableOnFleet,omitempty" `
// enable pin for cash drawer
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnablePinForCashDrawer bool ` json:"enablePinForCashDrawer,omitempty" `
// enable sale logout
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableSaleLogout bool ` json:"enableSaleLogout,omitempty" `
// enable spring big
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableSpringBig bool ` json:"enableSpringBig,omitempty" `
// enable tookan
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableTookan bool ` json:"enableTookan,omitempty" `
// enable woo commerce
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableWooCommerce bool ` json:"enableWooCommerce,omitempty" `
// enforce cash drawers
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnforceCashDrawers bool ` json:"enforceCashDrawers,omitempty" `
// excise tax type
2021-02-09 16:56:57 +00:00
// Example: TOTAL_AMOUNT
2021-01-08 17:40:28 +00:00
ExciseTaxType string ` json:"exciseTaxType,omitempty" `
// hub Id
2021-02-09 16:56:57 +00:00
// Example: JPowoWy*p6zFD5D*y9t77DNJ
2021-01-08 17:40:28 +00:00
HubID string ` json:"hubId,omitempty" `
// hub name
2021-02-09 16:56:57 +00:00
// Example: Palm Springs
2021-01-08 17:40:28 +00:00
HubName string ` json:"hubName,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c9fe425e0faca07db94b970
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// invoice note
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
InvoiceNote string ` json:"invoiceNote,omitempty" `
// invoice term condition
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
InvoiceTermCondition string ` json:"invoiceTermCondition,omitempty" `
// latitude
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Latitude float64 ` json:"latitude,omitempty" `
// legal language
2021-02-09 16:56:57 +00:00
// Example: WARNING: This product can expose you to marijuana smoke and myrcene, which are known to the State of California to cause cancer. For more information, go to www.P65Warnings.ca.gov.
2021-01-08 17:40:28 +00:00
LegalLanguage string ` json:"legalLanguage,omitempty" `
// license
2021-02-09 16:56:57 +00:00
// Example: C9-18-0000102-TEMP
2021-01-08 17:40:28 +00:00
License string ` json:"license,omitempty" `
// logo
Logo * ShopResponseShopLogo ` json:"logo,omitempty" `
// longitude
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Longitude float64 ` json:"longitude,omitempty" `
// marketing sources
2021-02-09 16:56:57 +00:00
// Example: ["On Deck","Weed Maps","Google","Personal Referral","Billboard","Social Media","Print Media","Other"]
2021-01-08 17:40:28 +00:00
MarketingSources [ ] string ` json:"marketingSources" `
// medicinal age
2021-02-09 16:56:57 +00:00
// Example: 18
2021-01-08 17:40:28 +00:00
MedicinalAge float64 ` json:"medicinalAge,omitempty" `
// members count sync date
2021-02-09 16:56:57 +00:00
// Example: 1558372668851
2021-01-08 17:40:28 +00:00
MembersCountSyncDate float64 ` json:"membersCountSyncDate,omitempty" `
// members tag
2021-02-09 16:56:57 +00:00
// Example: ["Disabled"]
2021-01-08 17:40:28 +00:00
MembersTag [ ] string ` json:"membersTag" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1558372668851
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// nal excise from retail cost
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
NalExciseFromRetailCost bool ` json:"nalExciseFromRetailCost,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: Pineapple Express Palm Springs
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// next snapshot time
2021-02-09 16:56:57 +00:00
// Example: 1558422300000
2021-01-08 17:40:28 +00:00
NextSnapshotTime int64 ` json:"nextSnapshotTime,omitempty" `
// num allow active trans
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
NumAllowActiveTrans float64 ` json:"numAllowActiveTrans,omitempty" `
// on fleet Api key
2021-02-09 16:56:57 +00:00
// Example: d3ba42b1b557f703910d53d1a45be8ed
2021-01-08 17:40:28 +00:00
OnFleetAPIKey string ` json:"onFleetApiKey,omitempty" `
// on fleet organization Id
2021-02-09 16:56:57 +00:00
// Example: ziXWVNJiLeB2IeMUN5kSdIkX
2021-01-08 17:40:28 +00:00
OnFleetOrganizationID string ` json:"onFleetOrganizationId,omitempty" `
// on fleet organization name
2021-02-09 16:56:57 +00:00
// Example: Pineapple Express
2021-01-08 17:40:28 +00:00
OnFleetOrganizationName string ` json:"onFleetOrganizationName,omitempty" `
// online store info
OnlineStoreInfo * ShopResponseShopOnlineStoreInfo ` json:"onlineStoreInfo,omitempty" `
// order tags
2021-02-09 16:56:57 +00:00
// Example: ["Appointment","Early Bird","Late Gift"]
2021-01-08 17:40:28 +00:00
OrderTags [ ] string ` json:"orderTags" `
// phone number
2021-02-09 16:56:57 +00:00
// Example: (877) 933-3548
2021-01-08 17:40:28 +00:00
PhoneNumber string ` json:"phoneNumber,omitempty" `
// po note
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
PoNote string ` json:"poNote,omitempty" `
// po term condition
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
PoTermCondition string ` json:"poTermCondition,omitempty" `
// product price include excise tax
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ProductPriceIncludeExciseTax bool ` json:"productPriceIncludeExciseTax,omitempty" `
// products tag
2021-02-09 16:56:57 +00:00
// Example: ["Flower","Concentrate","Edibles","Vegan","vegan","Preroll","Vape Pens","Topical","Wraps"]
2021-01-08 17:40:28 +00:00
ProductsTag [ ] string ` json:"productsTag" `
// receipt info
ReceiptInfo [ ] * ShopResponseShopReceiptInfoItems0 ` json:"receiptInfo" `
// receiving inventory Id
2021-02-09 16:56:57 +00:00
// Example: 5c9fe425e0faca07db94b990
2021-01-08 17:40:28 +00:00
ReceivingInventoryID string ` json:"receivingInventoryId,omitempty" `
// require valid rec date
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
RequireValidRecDate bool ` json:"requireValidRecDate,omitempty" `
// restrict incoming order notifications
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
RestrictIncomingOrderNotifications bool ` json:"restrictIncomingOrderNotifications,omitempty" `
// restricted notification terminals
2021-02-09 16:56:57 +00:00
// Example: ["5c82b36db4ab160827412e62","5c82b3944442190831bca731","5cb7d5f54cd84907f647b6cd"]
2021-01-08 17:40:28 +00:00
RestrictedNotificationTerminals [ ] string ` json:"restrictedNotificationTerminals" `
// restricted views
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
RestrictedViews bool ` json:"restrictedViews,omitempty" `
// round off type
2021-02-09 16:56:57 +00:00
// Example: NONE
2021-01-08 17:40:28 +00:00
RoundOffType string ` json:"roundOffType,omitempty" `
// round up message
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
RoundUpMessage string ` json:"roundUpMessage,omitempty" `
// shop type
2021-02-09 16:56:57 +00:00
// Example: Both
2021-01-08 17:40:28 +00:00
ShopType string ` json:"shopType,omitempty" `
// short identifier
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ShortIdentifier string ` json:"shortIdentifier,omitempty" `
// show delivery queue
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
ShowDeliveryQueue bool ` json:"showDeliveryQueue,omitempty" `
// show online queue
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ShowOnlineQueue bool ` json:"showOnlineQueue,omitempty" `
// show product by available quantity
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
ShowProductByAvailableQuantity bool ` json:"showProductByAvailableQuantity,omitempty" `
// show special queue
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ShowSpecialQueue bool ` json:"showSpecialQueue,omitempty" `
// show walk in queue
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ShowWalkInQueue bool ` json:"showWalkInQueue,omitempty" `
// snapshop time
2021-02-09 16:56:57 +00:00
// Example: 1558336185744
2021-01-08 17:40:28 +00:00
SnapshopTime int64 ` json:"snapshopTime,omitempty" `
// tax info
TaxInfo * ShopResponseShopTaxInfo ` json:"taxInfo,omitempty" `
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string ` json:"taxOrder,omitempty" `
// tax round off type
2021-02-09 16:56:57 +00:00
// Example: ONE_CENT
2021-01-08 17:40:28 +00:00
TaxRoundOffType string ` json:"taxRoundOffType,omitempty" `
// tax tables
TaxTables [ ] * ShopResponseShopTaxTablesItems0 ` json:"taxTables" `
// time zone
2021-02-09 16:56:57 +00:00
// Example: America/Los_Angeles
2021-01-08 17:40:28 +00:00
TimeZone string ` json:"timeZone,omitempty" `
// timezone offset in minutes
2021-02-09 16:56:57 +00:00
// Example: -420
2021-01-08 17:40:28 +00:00
TimezoneOffsetInMinutes float64 ` json:"timezoneOffsetInMinutes,omitempty" `
// twilio number
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
TwilioNumber string ` json:"twilioNumber,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// use assigned employee
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
UseAssignedEmployee bool ` json:"useAssignedEmployee,omitempty" `
// use complex tax
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
UseComplexTax bool ` json:"useComplexTax,omitempty" `
}
// Validate validates this shop response shop
func ( m * ShopResponseShop ) Validate ( formats strfmt . Registry ) error {
var res [ ] error
if err := m . validateAddress ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateAssets ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateCartMinimums ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateLogo ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateOnlineStoreInfo ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateReceiptInfo ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateTaxInfo ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateTaxTables ( formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseShop ) validateAddress ( formats strfmt . Registry ) error {
if swag . IsZero ( m . Address ) { // not required
return nil
}
if m . Address != nil {
if err := m . Address . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "address" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) validateAssets ( formats strfmt . Registry ) error {
if swag . IsZero ( m . Assets ) { // not required
return nil
}
for i := 0 ; i < len ( m . Assets ) ; i ++ {
if swag . IsZero ( m . Assets [ i ] ) { // not required
continue
}
if m . Assets [ i ] != nil {
if err := m . Assets [ i ] . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "assets" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
func ( m * ShopResponseShop ) validateCartMinimums ( formats strfmt . Registry ) error {
if swag . IsZero ( m . CartMinimums ) { // not required
return nil
}
if m . CartMinimums != nil {
if err := m . CartMinimums . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "cartMinimums" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) validateLogo ( formats strfmt . Registry ) error {
if swag . IsZero ( m . Logo ) { // not required
return nil
}
if m . Logo != nil {
if err := m . Logo . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "logo" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) validateOnlineStoreInfo ( formats strfmt . Registry ) error {
if swag . IsZero ( m . OnlineStoreInfo ) { // not required
return nil
}
if m . OnlineStoreInfo != nil {
if err := m . OnlineStoreInfo . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "onlineStoreInfo" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) validateReceiptInfo ( formats strfmt . Registry ) error {
if swag . IsZero ( m . ReceiptInfo ) { // not required
return nil
}
for i := 0 ; i < len ( m . ReceiptInfo ) ; i ++ {
if swag . IsZero ( m . ReceiptInfo [ i ] ) { // not required
continue
}
if m . ReceiptInfo [ i ] != nil {
if err := m . ReceiptInfo [ i ] . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "receiptInfo" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
func ( m * ShopResponseShop ) validateTaxInfo ( formats strfmt . Registry ) error {
if swag . IsZero ( m . TaxInfo ) { // not required
return nil
}
if m . TaxInfo != nil {
if err := m . TaxInfo . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "taxInfo" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) validateTaxTables ( formats strfmt . Registry ) error {
if swag . IsZero ( m . TaxTables ) { // not required
return nil
}
for i := 0 ; i < len ( m . TaxTables ) ; i ++ {
if swag . IsZero ( m . TaxTables [ i ] ) { // not required
continue
}
if m . TaxTables [ i ] != nil {
if err := m . TaxTables [ i ] . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "taxTables" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this shop response shop based on the context it is used
func ( m * ShopResponseShop ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
var res [ ] error
if err := m . contextValidateAddress ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateAssets ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateCartMinimums ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateLogo ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateOnlineStoreInfo ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateReceiptInfo ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateTaxInfo ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateTaxTables ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseShop ) contextValidateAddress ( ctx context . Context , formats strfmt . Registry ) error {
if m . Address != nil {
if err := m . Address . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "address" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateAssets ( ctx context . Context , formats strfmt . Registry ) error {
for i := 0 ; i < len ( m . Assets ) ; i ++ {
if m . Assets [ i ] != nil {
if err := m . Assets [ i ] . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "assets" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateCartMinimums ( ctx context . Context , formats strfmt . Registry ) error {
if m . CartMinimums != nil {
if err := m . CartMinimums . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "cartMinimums" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateLogo ( ctx context . Context , formats strfmt . Registry ) error {
if m . Logo != nil {
if err := m . Logo . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "logo" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateOnlineStoreInfo ( ctx context . Context , formats strfmt . Registry ) error {
if m . OnlineStoreInfo != nil {
if err := m . OnlineStoreInfo . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "onlineStoreInfo" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateReceiptInfo ( ctx context . Context , formats strfmt . Registry ) error {
for i := 0 ; i < len ( m . ReceiptInfo ) ; i ++ {
if m . ReceiptInfo [ i ] != nil {
if err := m . ReceiptInfo [ i ] . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "receiptInfo" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateTaxInfo ( ctx context . Context , formats strfmt . Registry ) error {
if m . TaxInfo != nil {
if err := m . TaxInfo . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "taxInfo" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShop ) contextValidateTaxTables ( ctx context . Context , formats strfmt . Registry ) error {
for i := 0 ; i < len ( m . TaxTables ) ; i ++ {
if m . TaxTables [ i ] != nil {
if err := m . TaxTables [ i ] . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "taxTables" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShop ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShop ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShop
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopAddress shop response shop address
//
// swagger:model ShopResponseShopAddress
type ShopResponseShopAddress struct {
// address
2021-02-09 16:56:57 +00:00
// Example: 695 Williams Rd
2021-01-08 17:40:28 +00:00
Address string ` json:"address,omitempty" `
// address line1
AddressLine1 string ` json:"addressLine1,omitempty" `
// city
2021-02-09 16:56:57 +00:00
// Example: Palm Springs
2021-01-08 17:40:28 +00:00
City string ` json:"city,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// country
2021-02-09 16:56:57 +00:00
// Example: US
2021-01-08 17:40:28 +00:00
Country string ` json:"country,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1553982501824
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c9fe425e0faca07db94b971
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1553982501824
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// state
2021-02-09 16:56:57 +00:00
// Example: CA
2021-01-08 17:40:28 +00:00
State string ` json:"state,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// zip code
2021-02-09 16:56:57 +00:00
// Example: 92264
2021-01-08 17:40:28 +00:00
ZipCode string ` json:"zipCode,omitempty" `
}
// Validate validates this shop response shop address
func ( m * ShopResponseShopAddress ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop address based on context it is used
func ( m * ShopResponseShopAddress ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopAddress ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopAddress ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopAddress
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopAssetsItems0 shop response shop assets items0
//
// swagger:model ShopResponseShopAssetsItems0
type ShopResponseShopAssetsItems0 struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// asset type
2021-02-09 16:56:57 +00:00
// Example: Document
2021-01-08 17:40:28 +00:00
AssetType string ` json:"assetType,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1558145178150
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5cdf689a59ded8080e03c06a
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// key
2021-02-09 16:56:57 +00:00
// Example: f5777926-e5cd-48c3-a026-a527bfaa930f.pdf
2021-01-08 17:40:28 +00:00
Key string ` json:"key,omitempty" `
// large URL
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
LargeURL string ` json:"largeURL,omitempty" `
// large x2 URL
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
LargeX2URL string ` json:"largeX2URL,omitempty" `
// medium URL
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
MediumURL string ` json:"mediumURL,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1558145178150
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: CGI Sellers Permit 247130880 - 00001.pdf
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// orig URL
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
OrigURL string ` json:"origURL,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// public URL
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
PublicURL string ` json:"publicURL,omitempty" `
// secured
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Secured bool ` json:"secured,omitempty" `
// thumb URL
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ThumbURL string ` json:"thumbURL,omitempty" `
// type
2021-02-09 16:56:57 +00:00
// Example: Document
2021-01-08 17:40:28 +00:00
Type string ` json:"type,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop assets items0
func ( m * ShopResponseShopAssetsItems0 ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop assets items0 based on context it is used
func ( m * ShopResponseShopAssetsItems0 ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopAssetsItems0 ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopAssetsItems0 ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopAssetsItems0
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopCartMinimums shop response shop cart minimums
//
// swagger:model ShopResponseShopCartMinimums
type ShopResponseShopCartMinimums struct {
// cart minimum details
CartMinimumDetails [ ] * ShopResponseShopCartMinimumsCartMinimumDetailsItems0 ` json:"cartMinimumDetails" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c9fea45b8bccf07fc47d5cc
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// minimums type
2021-02-09 16:56:57 +00:00
// Example: SIMPLE
2021-01-08 17:40:28 +00:00
MinimumsType string ` json:"minimumsType,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop cart minimums
func ( m * ShopResponseShopCartMinimums ) Validate ( formats strfmt . Registry ) error {
var res [ ] error
if err := m . validateCartMinimumDetails ( formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseShopCartMinimums ) validateCartMinimumDetails ( formats strfmt . Registry ) error {
if swag . IsZero ( m . CartMinimumDetails ) { // not required
return nil
}
for i := 0 ; i < len ( m . CartMinimumDetails ) ; i ++ {
if swag . IsZero ( m . CartMinimumDetails [ i ] ) { // not required
continue
}
if m . CartMinimumDetails [ i ] != nil {
if err := m . CartMinimumDetails [ i ] . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "cartMinimums" + "." + "cartMinimumDetails" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this shop response shop cart minimums based on the context it is used
func ( m * ShopResponseShopCartMinimums ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
var res [ ] error
if err := m . contextValidateCartMinimumDetails ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseShopCartMinimums ) contextValidateCartMinimumDetails ( ctx context . Context , formats strfmt . Registry ) error {
for i := 0 ; i < len ( m . CartMinimumDetails ) ; i ++ {
if m . CartMinimumDetails [ i ] != nil {
if err := m . CartMinimumDetails [ i ] . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "shop" + "." + "cartMinimums" + "." + "cartMinimumDetails" + "." + strconv . Itoa ( i ) )
}
return err
}
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopCartMinimums ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopCartMinimums ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopCartMinimums
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopCartMinimumsCartMinimumDetailsItems0 shop response shop cart minimums cart minimum details items0
//
// swagger:model ShopResponseShopCartMinimumsCartMinimumDetailsItems0
type ShopResponseShopCartMinimumsCartMinimumDetailsItems0 struct {
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// minimum
2021-02-09 16:56:57 +00:00
// Example: 40
2021-01-08 17:40:28 +00:00
Minimum float64 ` json:"minimum,omitempty" `
}
// Validate validates this shop response shop cart minimums cart minimum details items0
func ( m * ShopResponseShopCartMinimumsCartMinimumDetailsItems0 ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop cart minimums cart minimum details items0 based on context it is used
func ( m * ShopResponseShopCartMinimumsCartMinimumDetailsItems0 ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopCartMinimumsCartMinimumDetailsItems0 ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopCartMinimumsCartMinimumDetailsItems0 ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopCartMinimumsCartMinimumDetailsItems0
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopLogo shop response shop logo
//
// swagger:model ShopResponseShopLogo
type ShopResponseShopLogo struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// asset type
2021-02-09 16:56:57 +00:00
// Example: Photo
2021-01-08 17:40:28 +00:00
AssetType string ` json:"assetType,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1555870891770
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5cbcb4ab85c8ac07ed72aac0
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// key
2021-02-09 16:56:57 +00:00
// Example: 5d145b98-e563-40ec-bf50-189fa275888d.jpg
2021-01-08 17:40:28 +00:00
Key string ` json:"key,omitempty" `
// large URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-public.s3.amazonaws.com/5d145b98-e563-40ec-bf50-189fa275888d-800x800.jpg
2021-01-08 17:40:28 +00:00
LargeURL string ` json:"largeURL,omitempty" `
// large x2 URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/5d145b98-e563-40ec-bf50-189fa275888d-1600x1600.jpg
2021-01-08 17:40:28 +00:00
LargeX2URL string ` json:"largeX2URL,omitempty" `
// medium URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-public.s3.amazonaws.com/5d145b98-e563-40ec-bf50-189fa275888d-500x500.jpg
2021-01-08 17:40:28 +00:00
MediumURL string ` json:"mediumURL,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1555870891770
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: PE New.jpg
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// orig URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-public.s3.amazonaws.com/5d145b98-e563-40ec-bf50-189fa275888d.jpg
2021-01-08 17:40:28 +00:00
OrigURL string ` json:"origURL,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// public URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-public.s3.amazonaws.com/5d145b98-e563-40ec-bf50-189fa275888d.jpg
2021-01-08 17:40:28 +00:00
PublicURL string ` json:"publicURL,omitempty" `
// secured
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Secured bool ` json:"secured,omitempty" `
// thumb URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-public.s3.amazonaws.com/5d145b98-e563-40ec-bf50-189fa275888d-200x200.jpg
2021-01-08 17:40:28 +00:00
ThumbURL string ` json:"thumbURL,omitempty" `
// type
2021-02-09 16:56:57 +00:00
// Example: Photo
2021-01-08 17:40:28 +00:00
Type string ` json:"type,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop logo
func ( m * ShopResponseShopLogo ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop logo based on context it is used
func ( m * ShopResponseShopLogo ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopLogo ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopLogo ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopLogo
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopOnlineStoreInfo shop response shop online store info
//
// swagger:model ShopResponseShopOnlineStoreInfo
type ShopResponseShopOnlineStoreInfo struct {
// active inventory Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ActiveInventoryID string ` json:"activeInventoryId,omitempty" `
// cart min type
2021-02-09 16:56:57 +00:00
// Example: SubtotalWithDiscount
2021-01-08 17:40:28 +00:00
CartMinType string ` json:"cartMinType,omitempty" `
// cart minimum
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
CartMinimum float64 ` json:"cartMinimum,omitempty" `
// color theme
2021-02-09 16:56:57 +00:00
// Example: Light
2021-01-08 17:40:28 +00:00
ColorTheme string ` json:"colorTheme,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// custom message e t a
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CustomMessageETA string ` json:"customMessageETA,omitempty" `
// default e t a
2021-02-09 16:56:57 +00:00
// Example: 90
2021-01-08 17:40:28 +00:00
DefaultETA float64 ` json:"defaultETA,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// enable delivery
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableDelivery bool ` json:"enableDelivery,omitempty" `
// enable delivery area restrictions
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableDeliveryAreaRestrictions bool ` json:"enableDeliveryAreaRestrictions,omitempty" `
// enable Html text
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableHTMLText bool ` json:"enableHtmlText,omitempty" `
// enable inventory
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableInventory bool ` json:"enableInventory,omitempty" `
// enable inventory type
2021-02-09 16:56:57 +00:00
// Example: Custom
2021-01-08 17:40:28 +00:00
EnableInventoryType string ` json:"enableInventoryType,omitempty" `
// enable online p o s
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableOnlinePOS bool ` json:"enableOnlinePOS,omitempty" `
// enable online shipment
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableOnlineShipment bool ` json:"enableOnlineShipment,omitempty" `
// enable other marketing source
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableOtherMarketingSource bool ` json:"enableOtherMarketingSource,omitempty" `
// enable product reviews
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableProductReviews bool ` json:"enableProductReviews,omitempty" `
// enable store pickup
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableStorePickup bool ` json:"enableStorePickup,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// html text
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
HTMLText string ` json:"htmlText,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c9fea45b8bccf07fc47d5cd
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// page one message body
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
PageOneMessageBody string ` json:"pageOneMessageBody,omitempty" `
// page one message title
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
PageOneMessageTitle string ` json:"pageOneMessageTitle,omitempty" `
// restricted zip codes
2021-02-09 16:56:57 +00:00
// Example: ["90895","91001","91006","91007","93063"]
2021-01-08 17:40:28 +00:00
RestrictedZipCodes [ ] string ` json:"restrictedZipCodes" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: 5c9fe425e0faca07db94b970
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// store hex color
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
StoreHexColor string ` json:"storeHexColor,omitempty" `
// submission message
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
SubmissionMessage string ` json:"submissionMessage,omitempty" `
// support email
2021-02-09 16:56:57 +00:00
// Example: support@pineappleexpress.com
2021-01-08 17:40:28 +00:00
SupportEmail string ` json:"supportEmail,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// use custom e t a
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
UseCustomETA bool ` json:"useCustomETA,omitempty" `
// view type
2021-02-09 16:56:57 +00:00
// Example: List
2021-01-08 17:40:28 +00:00
ViewType string ` json:"viewType,omitempty" `
// website origins
WebsiteOrigins string ` json:"websiteOrigins,omitempty" `
// website Url
2021-02-09 16:56:57 +00:00
// Example: https://pineappleexpress.com
2021-01-08 17:40:28 +00:00
WebsiteURL string ` json:"websiteUrl,omitempty" `
}
// Validate validates this shop response shop online store info
func ( m * ShopResponseShopOnlineStoreInfo ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop online store info based on context it is used
func ( m * ShopResponseShopOnlineStoreInfo ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopOnlineStoreInfo ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopOnlineStoreInfo ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopOnlineStoreInfo
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopReceiptInfoItems0 shop response shop receipt info items0
//
// swagger:model ShopResponseShopReceiptInfoItems0
type ShopResponseShopReceiptInfoItems0 struct {
// above free text
2021-02-09 16:56:57 +00:00
// Example: TOP OF RECEIPT TEXT GOES HERE.
2021-01-08 17:40:28 +00:00
AboveFreeText string ` json:"aboveFreeText,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1557103750658
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// enable brand
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableBrand bool ` json:"enableBrand,omitempty" `
// enable employee name
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableEmployeeName bool ` json:"enableEmployeeName,omitempty" `
// enable excise tax as item
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableExciseTaxAsItem bool ` json:"enableExciseTaxAsItem,omitempty" `
// enable include item in s k u
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableIncludeItemInSKU bool ` json:"enableIncludeItemInSKU,omitempty" `
// enable member address
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableMemberAddress bool ` json:"enableMemberAddress,omitempty" `
// enable member Id
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableMemberID bool ` json:"enableMemberId,omitempty" `
// enable member loyalty points
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableMemberLoyaltyPoints bool ` json:"enableMemberLoyaltyPoints,omitempty" `
// enable member name
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableMemberName bool ` json:"enableMemberName,omitempty" `
// enable notes
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableNotes bool ` json:"enableNotes,omitempty" `
// enable shop address
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnableShopAddress bool ` json:"enableShopAddress,omitempty" `
// enable shop phone no
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableShopPhoneNo bool ` json:"enableShopPhoneNo,omitempty" `
// enabled bottom free text
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnabledBottomFreeText bool ` json:"enabledBottomFreeText,omitempty" `
// enabled free text
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnabledFreeText bool ` json:"enabledFreeText,omitempty" `
// free text
2021-02-09 16:56:57 +00:00
// Example: BOTTOM OF RECEIPT TEXT GOES HERE.
2021-01-08 17:40:28 +00:00
FreeText string ` json:"freeText,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1557103750658
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// receipt type
2021-02-09 16:56:57 +00:00
// Example: SALES
2021-01-08 17:40:28 +00:00
ReceiptType string ` json:"receiptType,omitempty" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop receipt info items0
func ( m * ShopResponseShopReceiptInfoItems0 ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop receipt info items0 based on context it is used
func ( m * ShopResponseShopReceiptInfoItems0 ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopReceiptInfoItems0 ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopReceiptInfoItems0 ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopReceiptInfoItems0
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopTaxInfo shop response shop tax info
//
// swagger:model ShopResponseShopTaxInfo
type ShopResponseShopTaxInfo struct {
// city tax
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
CityTax float64 ` json:"cityTax,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// federal tax
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
FederalTax float64 ` json:"federalTax,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c9fea45b8bccf07fc47d5ce
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// state tax
2021-02-09 16:56:57 +00:00
// Example: 0.08
2021-01-08 17:40:28 +00:00
StateTax float64 ` json:"stateTax,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop tax info
func ( m * ShopResponseShopTaxInfo ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop tax info based on context it is used
func ( m * ShopResponseShopTaxInfo ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopTaxInfo ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopTaxInfo ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopTaxInfo
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopTaxTablesItems0 shop response shop tax tables items0
//
// swagger:model ShopResponseShopTaxTablesItems0
type ShopResponseShopTaxTablesItems0 struct {
// active
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// city tax
CityTax * ShopResponseShopTaxTablesItems0CityTax ` json:"cityTax,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// consumer type
2021-02-09 16:56:57 +00:00
// Example: AdultUse
2021-01-08 17:40:28 +00:00
ConsumerType string ` json:"consumerType,omitempty" `
// county tax
CountyTax * ShopResponseShopTaxTablesItems0CountyTax ` json:"countyTax,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// federal tax
FederalTax * ShopResponseShopTaxTablesItems0FederalTax ` json:"federalTax,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c9fea45b8bccf07fc47d5c9
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1553984069346
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: Adult Use
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: 5c9fe425e0faca07db94b970
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// state tax
StateTax * ShopResponseShopTaxTablesItems0StateTax ` json:"stateTax,omitempty" `
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string ` json:"taxOrder,omitempty" `
// tax type
2021-02-09 16:56:57 +00:00
// Example: Inherit
2021-01-08 17:40:28 +00:00
TaxType string ` json:"taxType,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop tax tables items0
func ( m * ShopResponseShopTaxTablesItems0 ) Validate ( formats strfmt . Registry ) error {
var res [ ] error
if err := m . validateCityTax ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateCountyTax ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateFederalTax ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateStateTax ( formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) validateCityTax ( formats strfmt . Registry ) error {
if swag . IsZero ( m . CityTax ) { // not required
return nil
}
if m . CityTax != nil {
if err := m . CityTax . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "cityTax" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) validateCountyTax ( formats strfmt . Registry ) error {
if swag . IsZero ( m . CountyTax ) { // not required
return nil
}
if m . CountyTax != nil {
if err := m . CountyTax . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "countyTax" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) validateFederalTax ( formats strfmt . Registry ) error {
if swag . IsZero ( m . FederalTax ) { // not required
return nil
}
if m . FederalTax != nil {
if err := m . FederalTax . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "federalTax" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) validateStateTax ( formats strfmt . Registry ) error {
if swag . IsZero ( m . StateTax ) { // not required
return nil
}
if m . StateTax != nil {
if err := m . StateTax . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "stateTax" )
}
return err
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this shop response shop tax tables items0 based on the context it is used
func ( m * ShopResponseShopTaxTablesItems0 ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
var res [ ] error
if err := m . contextValidateCityTax ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateCountyTax ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateFederalTax ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateStateTax ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) contextValidateCityTax ( ctx context . Context , formats strfmt . Registry ) error {
if m . CityTax != nil {
if err := m . CityTax . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "cityTax" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) contextValidateCountyTax ( ctx context . Context , formats strfmt . Registry ) error {
if m . CountyTax != nil {
if err := m . CountyTax . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "countyTax" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) contextValidateFederalTax ( ctx context . Context , formats strfmt . Registry ) error {
if m . FederalTax != nil {
if err := m . FederalTax . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "federalTax" )
}
return err
}
}
return nil
}
func ( m * ShopResponseShopTaxTablesItems0 ) contextValidateStateTax ( ctx context . Context , formats strfmt . Registry ) error {
if m . StateTax != nil {
if err := m . StateTax . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "stateTax" )
}
return err
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0 ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0 ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopTaxTablesItems0
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopTaxTablesItems0CityTax shop response shop tax tables items0 city tax
//
// swagger:model ShopResponseShopTaxTablesItems0CityTax
type ShopResponseShopTaxTablesItems0CityTax struct {
// active
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// active excise tax
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ActiveExciseTax bool ` json:"activeExciseTax,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// compound
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Compound bool ` json:"compound,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5cb791d92f7a85083f3638ad
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string ` json:"taxOrder,omitempty" `
// tax rate
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TaxRate float64 ` json:"taxRate,omitempty" `
// territory
2021-02-09 16:56:57 +00:00
// Example: City
2021-01-08 17:40:28 +00:00
Territory string ` json:"territory,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop tax tables items0 city tax
func ( m * ShopResponseShopTaxTablesItems0CityTax ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop tax tables items0 city tax based on context it is used
func ( m * ShopResponseShopTaxTablesItems0CityTax ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0CityTax ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0CityTax ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopTaxTablesItems0CityTax
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopTaxTablesItems0CountyTax shop response shop tax tables items0 county tax
//
// swagger:model ShopResponseShopTaxTablesItems0CountyTax
type ShopResponseShopTaxTablesItems0CountyTax struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// active excise tax
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
ActiveExciseTax bool ` json:"activeExciseTax,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// compound
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Compound bool ` json:"compound,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5cb791d92f7a85083f3638ae
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string ` json:"taxOrder,omitempty" `
// tax rate
2021-02-09 16:56:57 +00:00
// Example: 0.25
2021-01-08 17:40:28 +00:00
TaxRate float64 ` json:"taxRate,omitempty" `
// territory
2021-02-09 16:56:57 +00:00
// Example: County
2021-01-08 17:40:28 +00:00
Territory string ` json:"territory,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop tax tables items0 county tax
func ( m * ShopResponseShopTaxTablesItems0CountyTax ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop tax tables items0 county tax based on context it is used
func ( m * ShopResponseShopTaxTablesItems0CountyTax ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0CountyTax ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0CountyTax ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopTaxTablesItems0CountyTax
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopTaxTablesItems0FederalTax shop response shop tax tables items0 federal tax
//
// swagger:model ShopResponseShopTaxTablesItems0FederalTax
type ShopResponseShopTaxTablesItems0FederalTax struct {
// active
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// active excise tax
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ActiveExciseTax bool ` json:"activeExciseTax,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// compound
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Compound bool ` json:"compound,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5cb791d92f7a85083f3638b0
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string ` json:"taxOrder,omitempty" `
// tax rate
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TaxRate float64 ` json:"taxRate,omitempty" `
// territory
2021-02-09 16:56:57 +00:00
// Example: Federal
2021-01-08 17:40:28 +00:00
Territory string ` json:"territory,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop tax tables items0 federal tax
func ( m * ShopResponseShopTaxTablesItems0FederalTax ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop tax tables items0 federal tax based on context it is used
func ( m * ShopResponseShopTaxTablesItems0FederalTax ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0FederalTax ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0FederalTax ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopTaxTablesItems0FederalTax
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseShopTaxTablesItems0StateTax shop response shop tax tables items0 state tax
//
// swagger:model ShopResponseShopTaxTablesItems0StateTax
type ShopResponseShopTaxTablesItems0StateTax struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool ` json:"active,omitempty" `
// active excise tax
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
ActiveExciseTax bool ` json:"activeExciseTax,omitempty" `
// company Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// compound
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Compound bool ` json:"compound,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool ` json:"dirty,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5cb791d92f7a85083f3638af
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1555534297286
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// shop Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ShopID string ` json:"shopId,omitempty" `
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string ` json:"taxOrder,omitempty" `
// tax rate
2021-02-09 16:56:57 +00:00
// Example: 9.25
2021-01-08 17:40:28 +00:00
TaxRate float64 ` json:"taxRate,omitempty" `
// territory
2021-02-09 16:56:57 +00:00
// Example: State
2021-01-08 17:40:28 +00:00
Territory string ` json:"territory,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
}
// Validate validates this shop response shop tax tables items0 state tax
func ( m * ShopResponseShopTaxTablesItems0StateTax ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response shop tax tables items0 state tax based on context it is used
func ( m * ShopResponseShopTaxTablesItems0StateTax ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0StateTax ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseShopTaxTablesItems0StateTax ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseShopTaxTablesItems0StateTax
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMap shop response tolerance map
//
// swagger:model ShopResponseToleranceMap
type ShopResponseToleranceMap struct {
// g RAM
GRAM * ShopResponseToleranceMapGRAM ` json:"GRAM,omitempty" `
// h a l f
HALF * ShopResponseToleranceMapHALF ` json:"HALF,omitempty" `
// h a l f g RAM
HALFGRAM * ShopResponseToleranceMapHALFGRAM ` json:"HALF_GRAM,omitempty" `
// o n e e i g h t t h
ONEEIGHTTH * ShopResponseToleranceMapONEEIGHTTH ` json:"ONE_EIGHTTH,omitempty" `
// o u n c e
OUNCE * ShopResponseToleranceMapOUNCE ` json:"OUNCE,omitempty" `
// q u a r t e r
QUARTER * ShopResponseToleranceMapQUARTER ` json:"QUARTER,omitempty" `
// t h r e e g RAM s
THREEGRAMS * ShopResponseToleranceMapTHREEGRAMS ` json:"THREE_GRAMS,omitempty" `
// t w o g RAM s
TWOGRAMS * ShopResponseToleranceMapTWOGRAMS ` json:"TWO_GRAMS,omitempty" `
}
// Validate validates this shop response tolerance map
func ( m * ShopResponseToleranceMap ) Validate ( formats strfmt . Registry ) error {
var res [ ] error
if err := m . validateGRAM ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateHALF ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateHALFGRAM ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateONEEIGHTTH ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateOUNCE ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateQUARTER ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateTHREEGRAMS ( formats ) ; err != nil {
res = append ( res , err )
}
if err := m . validateTWOGRAMS ( formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateGRAM ( formats strfmt . Registry ) error {
if swag . IsZero ( m . GRAM ) { // not required
return nil
}
if m . GRAM != nil {
if err := m . GRAM . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "GRAM" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateHALF ( formats strfmt . Registry ) error {
if swag . IsZero ( m . HALF ) { // not required
return nil
}
if m . HALF != nil {
if err := m . HALF . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "HALF" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateHALFGRAM ( formats strfmt . Registry ) error {
if swag . IsZero ( m . HALFGRAM ) { // not required
return nil
}
if m . HALFGRAM != nil {
if err := m . HALFGRAM . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "HALF_GRAM" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateONEEIGHTTH ( formats strfmt . Registry ) error {
if swag . IsZero ( m . ONEEIGHTTH ) { // not required
return nil
}
if m . ONEEIGHTTH != nil {
if err := m . ONEEIGHTTH . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "ONE_EIGHTTH" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateOUNCE ( formats strfmt . Registry ) error {
if swag . IsZero ( m . OUNCE ) { // not required
return nil
}
if m . OUNCE != nil {
if err := m . OUNCE . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "OUNCE" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateQUARTER ( formats strfmt . Registry ) error {
if swag . IsZero ( m . QUARTER ) { // not required
return nil
}
if m . QUARTER != nil {
if err := m . QUARTER . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "QUARTER" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateTHREEGRAMS ( formats strfmt . Registry ) error {
if swag . IsZero ( m . THREEGRAMS ) { // not required
return nil
}
if m . THREEGRAMS != nil {
if err := m . THREEGRAMS . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "THREE_GRAMS" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) validateTWOGRAMS ( formats strfmt . Registry ) error {
if swag . IsZero ( m . TWOGRAMS ) { // not required
return nil
}
if m . TWOGRAMS != nil {
if err := m . TWOGRAMS . Validate ( formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "TWO_GRAMS" )
}
return err
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this shop response tolerance map based on the context it is used
func ( m * ShopResponseToleranceMap ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
var res [ ] error
if err := m . contextValidateGRAM ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateHALF ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateHALFGRAM ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateONEEIGHTTH ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateOUNCE ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateQUARTER ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateTHREEGRAMS ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if err := m . contextValidateTWOGRAMS ( ctx , formats ) ; err != nil {
res = append ( res , err )
}
if len ( res ) > 0 {
return errors . CompositeValidationError ( res ... )
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateGRAM ( ctx context . Context , formats strfmt . Registry ) error {
if m . GRAM != nil {
if err := m . GRAM . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "GRAM" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateHALF ( ctx context . Context , formats strfmt . Registry ) error {
if m . HALF != nil {
if err := m . HALF . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "HALF" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateHALFGRAM ( ctx context . Context , formats strfmt . Registry ) error {
if m . HALFGRAM != nil {
if err := m . HALFGRAM . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "HALF_GRAM" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateONEEIGHTTH ( ctx context . Context , formats strfmt . Registry ) error {
if m . ONEEIGHTTH != nil {
if err := m . ONEEIGHTTH . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "ONE_EIGHTTH" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateOUNCE ( ctx context . Context , formats strfmt . Registry ) error {
if m . OUNCE != nil {
if err := m . OUNCE . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "OUNCE" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateQUARTER ( ctx context . Context , formats strfmt . Registry ) error {
if m . QUARTER != nil {
if err := m . QUARTER . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "QUARTER" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateTHREEGRAMS ( ctx context . Context , formats strfmt . Registry ) error {
if m . THREEGRAMS != nil {
if err := m . THREEGRAMS . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "THREE_GRAMS" )
}
return err
}
}
return nil
}
func ( m * ShopResponseToleranceMap ) contextValidateTWOGRAMS ( ctx context . Context , formats strfmt . Registry ) error {
if m . TWOGRAMS != nil {
if err := m . TWOGRAMS . ContextValidate ( ctx , formats ) ; err != nil {
if ve , ok := err . ( * errors . Validation ) ; ok {
return ve . ValidateName ( "toleranceMap" + "." + "TWO_GRAMS" )
}
return err
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMap ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMap ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMap
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapGRAM shop response tolerance map g RAM
//
// swagger:model ShopResponseToleranceMapGRAM
type ShopResponseToleranceMapGRAM struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486903
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 1.35
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb09
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486903
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: Gram
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 0.85
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: GRAM
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map g RAM
func ( m * ShopResponseToleranceMapGRAM ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map g RAM based on context it is used
func ( m * ShopResponseToleranceMapGRAM ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapGRAM ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapGRAM ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapGRAM
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapHALF shop response tolerance map h a l f
//
// swagger:model ShopResponseToleranceMapHALF
type ShopResponseToleranceMapHALF struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 14.5
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb0e
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: 1/2
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 6
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 14
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 14
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: HALF
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 14.17476
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map h a l f
func ( m * ShopResponseToleranceMapHALF ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map h a l f based on context it is used
func ( m * ShopResponseToleranceMapHALF ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapHALF ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapHALF ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapHALF
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapHALFGRAM shop response tolerance map h a l f g RAM
//
// swagger:model ShopResponseToleranceMapHALFGRAM
type ShopResponseToleranceMapHALFGRAM struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486902
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 0.6
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb08
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486902
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: .5 Gram
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 0.5
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 0.5
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: HALF_GRAM
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 0.5
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map h a l f g RAM
func ( m * ShopResponseToleranceMapHALFGRAM ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map h a l f g RAM based on context it is used
func ( m * ShopResponseToleranceMapHALFGRAM ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapHALFGRAM ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapHALFGRAM ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapHALFGRAM
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapONEEIGHTTH shop response tolerance map o n e e i g h t t h
//
// swagger:model ShopResponseToleranceMapONEEIGHTTH
type ShopResponseToleranceMapONEEIGHTTH struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 3.85
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb0c
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: 1/8th
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 4
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 3.45
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 3.5
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: ONE_EIGHTTH
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 3.54369
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map o n e e i g h t t h
func ( m * ShopResponseToleranceMapONEEIGHTTH ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map o n e e i g h t t h based on context it is used
func ( m * ShopResponseToleranceMapONEEIGHTTH ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapONEEIGHTTH ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapONEEIGHTTH ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapONEEIGHTTH
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapOUNCE shop response tolerance map o u n c e
//
// swagger:model ShopResponseToleranceMapOUNCE
type ShopResponseToleranceMapOUNCE struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 28.5
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb0f
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: 1 Oz
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 7
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 28
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 28
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: OUNCE
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 28.34952
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map o u n c e
func ( m * ShopResponseToleranceMapOUNCE ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map o u n c e based on context it is used
func ( m * ShopResponseToleranceMapOUNCE ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapOUNCE ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapOUNCE ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapOUNCE
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapQUARTER shop response tolerance map q u a r t e r
//
// swagger:model ShopResponseToleranceMapQUARTER
type ShopResponseToleranceMapQUARTER struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 7.5
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb0d
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486905
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: 1/4th
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 5
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 7
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 7
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: QUARTER
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 7.087381
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map q u a r t e r
func ( m * ShopResponseToleranceMapQUARTER ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map q u a r t e r based on context it is used
func ( m * ShopResponseToleranceMapQUARTER ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapQUARTER ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapQUARTER ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapQUARTER
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapTHREEGRAMS shop response tolerance map t h r e e g RAM s
//
// swagger:model ShopResponseToleranceMapTHREEGRAMS
type ShopResponseToleranceMapTHREEGRAMS struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486904
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 3.1
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb0b
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486904
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: 3 Grams
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 3
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 3
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 3
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: THREE_GRAMS
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 3
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map t h r e e g RAM s
func ( m * ShopResponseToleranceMapTHREEGRAMS ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map t h r e e g RAM s based on context it is used
func ( m * ShopResponseToleranceMapTHREEGRAMS ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapTHREEGRAMS ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapTHREEGRAMS ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapTHREEGRAMS
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}
// ShopResponseToleranceMapTWOGRAMS shop response tolerance map t w o g RAM s
//
// swagger:model ShopResponseToleranceMapTWOGRAMS
type ShopResponseToleranceMapTWOGRAMS struct {
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string ` json:"companyId,omitempty" `
// created
2021-02-09 16:56:57 +00:00
// Example: 1551488486903
2021-01-08 17:40:28 +00:00
Created int64 ` json:"created,omitempty" `
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool ` json:"deleted,omitempty" `
// enabled
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Enabled bool ` json:"enabled,omitempty" `
// end weight
2021-02-09 16:56:57 +00:00
// Example: 2.1
2021-01-08 17:40:28 +00:00
EndWeight float64 ` json:"endWeight,omitempty" `
// id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb0a
2021-01-08 17:40:28 +00:00
ID string ` json:"id,omitempty" `
// modified
2021-02-09 16:56:57 +00:00
// Example: 1551488486903
2021-01-08 17:40:28 +00:00
Modified int64 ` json:"modified,omitempty" `
// name
2021-02-09 16:56:57 +00:00
// Example: 2 Grams
2021-01-08 17:40:28 +00:00
Name string ` json:"name,omitempty" `
// priority
2021-02-09 16:56:57 +00:00
// Example: 2
2021-01-08 17:40:28 +00:00
Priority float64 ` json:"priority,omitempty" `
// start weight
2021-02-09 16:56:57 +00:00
// Example: 2
2021-01-08 17:40:28 +00:00
StartWeight float64 ` json:"startWeight,omitempty" `
// unit value
2021-02-09 16:56:57 +00:00
// Example: 2
2021-01-08 17:40:28 +00:00
UnitValue float64 ` json:"unitValue,omitempty" `
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool ` json:"updated,omitempty" `
// weight key
2021-02-09 16:56:57 +00:00
// Example: TWO_GRAMS
2021-01-08 17:40:28 +00:00
WeightKey string ` json:"weightKey,omitempty" `
// weight value
2021-02-09 16:56:57 +00:00
// Example: 2
2021-01-08 17:40:28 +00:00
WeightValue float64 ` json:"weightValue,omitempty" `
}
// Validate validates this shop response tolerance map t w o g RAM s
func ( m * ShopResponseToleranceMapTWOGRAMS ) Validate ( formats strfmt . Registry ) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this shop response tolerance map t w o g RAM s based on context it is used
func ( m * ShopResponseToleranceMapTWOGRAMS ) ContextValidate ( ctx context . Context , formats strfmt . Registry ) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func ( m * ShopResponseToleranceMapTWOGRAMS ) MarshalBinary ( ) ( [ ] byte , error ) {
if m == nil {
return nil , nil
}
return swag . WriteJSON ( m )
}
// UnmarshalBinary interface implementation
func ( m * ShopResponseToleranceMapTWOGRAMS ) UnmarshalBinary ( b [ ] byte ) error {
var res ShopResponseToleranceMapTWOGRAMS
if err := swag . ReadJSON ( b , & res ) ; err != nil {
return err
}
* m = res
return nil
}