5641 lines
145 KiB
Go
5641 lines
145 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
||
|
||
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
|
||
// 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 (
|
||
"context"
|
||
"strconv"
|
||
|
||
"github.com/go-openapi/errors"
|
||
"github.com/go-openapi/strfmt"
|
||
"github.com/go-openapi/swag"
|
||
)
|
||
|
||
// TransactionsResponse transactions response
|
||
//
|
||
// swagger:model TransactionsResponse
|
||
type TransactionsResponse struct {
|
||
|
||
// limit
|
||
// Example: 200
|
||
Limit float64 `json:"limit,omitempty"`
|
||
|
||
// skip
|
||
// Example: 0
|
||
Skip float64 `json:"skip,omitempty"`
|
||
|
||
// total
|
||
// Example: 138
|
||
Total float64 `json:"total,omitempty"`
|
||
|
||
// values
|
||
Values []*TransactionsResponseValuesItems0 `json:"values"`
|
||
}
|
||
|
||
// Validate validates this transactions response
|
||
func (m *TransactionsResponse) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateValues(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponse) validateValues(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Values) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.Values); i++ {
|
||
if swag.IsZero(m.Values[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.Values[i] != nil {
|
||
if err := m.Values[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("values" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response based on the context it is used
|
||
func (m *TransactionsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidateValues(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponse) contextValidateValues(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.Values); i++ {
|
||
|
||
if m.Values[i] != nil {
|
||
if err := m.Values[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("values" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponse) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponse) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponse
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0 transactions response values items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0
|
||
type TransactionsResponseValuesItems0 struct {
|
||
|
||
// active
|
||
// Example: false
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// assigned employee Id
|
||
// Example: 5cba1d65e7198807f4ba7163
|
||
AssignedEmployeeID string `json:"assignedEmployeeId,omitempty"`
|
||
|
||
// cart
|
||
Cart *TransactionsResponseValuesItems0Cart `json:"cart,omitempty"`
|
||
|
||
// checkin time
|
||
// Example: 1556055323017
|
||
CheckinTime int64 `json:"checkinTime,omitempty"`
|
||
|
||
// checkout type
|
||
// Example: Direct
|
||
CheckoutType string `json:"checkoutType,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// completed time
|
||
// Example: 1556066738522
|
||
CompletedTime int64 `json:"completedTime,omitempty"`
|
||
|
||
// consumer cart Id
|
||
// Example: string
|
||
ConsumerCartID string `json:"consumerCartId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556055323017
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// created by Id
|
||
// Example: 5cb7b8a94cd84907f646e851
|
||
CreatedByID string `json:"createdById,omitempty"`
|
||
|
||
// delete note
|
||
DeleteNote *TransactionsResponseValuesItems0DeleteNote `json:"deleteNote,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// delivery address
|
||
DeliveryAddress *TransactionsResponseValuesItems0DeliveryAddress `json:"deliveryAddress,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// end route date
|
||
// Example: 1556056021575
|
||
EndRouteDate float64 `json:"endRouteDate,omitempty"`
|
||
|
||
// end route location
|
||
// Example: [33.81258146840503,-116.49588659416557]
|
||
EndRouteLocation []float64 `json:"endRouteLocation"`
|
||
|
||
// end time
|
||
// Example: 1556066737667
|
||
EndTime int64 `json:"endTime,omitempty"`
|
||
|
||
// eta
|
||
// Example: 0
|
||
Eta float64 `json:"eta,omitempty"`
|
||
|
||
// fulfillment step
|
||
// Example: Prepare
|
||
FulfillmentStep string `json:"fulfillmentStep,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbf851b33b485082543b7a1
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// loc
|
||
// Example: [-118.58774266216771,34.37550086531264]
|
||
Loc []float64 `json:"loc"`
|
||
|
||
// locked
|
||
// Example: false
|
||
Locked bool `json:"locked,omitempty"`
|
||
|
||
// member
|
||
Member *TransactionsResponseValuesItems0Member `json:"member,omitempty"`
|
||
|
||
// member Id
|
||
// Example: 5cbf84e233b485082543b67d
|
||
MemberID string `json:"memberId,omitempty"`
|
||
|
||
// member signature
|
||
MemberSignature *TransactionsResponseValuesItems0MemberSignature `json:"memberSignature,omitempty"`
|
||
|
||
// memo
|
||
// Example: string
|
||
Memo string `json:"memo,omitempty"`
|
||
|
||
// metrc Id
|
||
// Example: string
|
||
MetrcID int64 `json:"metrcId,omitempty"`
|
||
|
||
// metrc sale time
|
||
// Example: 2019-04-24T00:45:38.522Z
|
||
MetrcSaleTime string `json:"metrcSaleTime,omitempty"`
|
||
|
||
// mileage
|
||
// Example: 0
|
||
Mileage float64 `json:"mileage,omitempty"`
|
||
|
||
// mileage calculated
|
||
// Example: true
|
||
MileageCalculated bool `json:"mileageCalculated,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556503061612
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// note
|
||
Note *TransactionsResponseValuesItems0Note `json:"note,omitempty"`
|
||
|
||
// override inventory Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
OverrideInventoryID string `json:"overrideInventoryId,omitempty"`
|
||
|
||
// paid
|
||
// Example: false
|
||
Paid bool `json:"paid,omitempty"`
|
||
|
||
// paid time
|
||
// Example: 1556066738522
|
||
PaidTime int64 `json:"paidTime,omitempty"`
|
||
|
||
// parentitem number
|
||
// Example: 5cd329d5e0faca07d2832c88
|
||
ParentitemNumber string `json:"parentitemNumber,omitempty"`
|
||
|
||
// payment card payments
|
||
PaymentCardPayments []*TransactionsResponseValuesItems0PaymentCardPaymentsItems0 `json:"paymentCardPayments"`
|
||
|
||
// points earned
|
||
// Example: 90
|
||
PointsEarned float64 `json:"pointsEarned,omitempty"`
|
||
|
||
// priority
|
||
// Example: 71
|
||
Priority float64 `json:"priority,omitempty"`
|
||
|
||
// processed time
|
||
// Example: 1556066738522
|
||
ProcessedTime int64 `json:"processedTime,omitempty"`
|
||
|
||
// queue type
|
||
// Example: Delivery
|
||
QueueType string `json:"queueType,omitempty"`
|
||
|
||
// routing
|
||
// Example: false
|
||
Routing bool `json:"routing,omitempty"`
|
||
|
||
// seller
|
||
Seller *TransactionsResponseValuesItems0Seller `json:"seller,omitempty"`
|
||
|
||
// seller Id
|
||
// Example: 5cba1d65e7198807f4ba7163
|
||
SellerID string `json:"sellerId,omitempty"`
|
||
|
||
// seller terminal Id
|
||
// Example: 5c82b3944442190831bca731
|
||
SellerTerminalID string `json:"sellerTerminalId,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// source
|
||
// Example: string
|
||
Source string `json:"source,omitempty"`
|
||
|
||
// start route date
|
||
// Example: 1556056023752
|
||
StartRouteDate float64 `json:"startRouteDate,omitempty"`
|
||
|
||
// start route location
|
||
// Example: [33.81258146840503,-116.49588659416557]
|
||
StartRouteLocation []float64 `json:"startRouteLocation"`
|
||
|
||
// start time
|
||
// Example: 1556066674249
|
||
StartTime int64 `json:"startTime,omitempty"`
|
||
|
||
// status
|
||
// Example: Completed
|
||
Status string `json:"status,omitempty"`
|
||
|
||
// terminal Id
|
||
TerminalID string `json:"terminalId,omitempty"`
|
||
|
||
// time zone
|
||
// Example: America/Los_Angeles
|
||
TimeZone string `json:"timeZone,omitempty"`
|
||
|
||
// trace message
|
||
// Example: string
|
||
TraceMessage string `json:"traceMessage,omitempty"`
|
||
|
||
// trace submit status
|
||
// Example: None
|
||
TraceSubmitStatus string `json:"traceSubmitStatus,omitempty"`
|
||
|
||
// tracking status
|
||
// Example: NotStarted
|
||
TrackingStatus string `json:"trackingStatus,omitempty"`
|
||
|
||
// trans no
|
||
// Example: 71
|
||
TransNo string `json:"transNo,omitempty"`
|
||
|
||
// trans type
|
||
// Example: Sale
|
||
TransType string `json:"transType,omitempty"`
|
||
|
||
// transfer shop Id
|
||
// Example: string
|
||
TransferShopID string `json:"transferShopId,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0
|
||
func (m *TransactionsResponseValuesItems0) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateCart(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateDeleteNote(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateDeliveryAddress(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateMember(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateMemberSignature(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateNote(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validatePaymentCardPayments(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateSeller(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateCart(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Cart) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.Cart != nil {
|
||
if err := m.Cart.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateDeleteNote(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.DeleteNote) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.DeleteNote != nil {
|
||
if err := m.DeleteNote.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("deleteNote")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateDeliveryAddress(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.DeliveryAddress) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.DeliveryAddress != nil {
|
||
if err := m.DeliveryAddress.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("deliveryAddress")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateMember(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Member) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.Member != nil {
|
||
if err := m.Member.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateMemberSignature(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.MemberSignature) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.MemberSignature != nil {
|
||
if err := m.MemberSignature.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("memberSignature")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateNote(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Note) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.Note != nil {
|
||
if err := m.Note.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("note")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validatePaymentCardPayments(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.PaymentCardPayments) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.PaymentCardPayments); i++ {
|
||
if swag.IsZero(m.PaymentCardPayments[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.PaymentCardPayments[i] != nil {
|
||
if err := m.PaymentCardPayments[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("paymentCardPayments" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) validateSeller(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Seller) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.Seller != nil {
|
||
if err := m.Seller.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("seller")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidateCart(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateDeleteNote(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateDeliveryAddress(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateMember(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateMemberSignature(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateNote(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidatePaymentCardPayments(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateSeller(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateCart(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.Cart != nil {
|
||
if err := m.Cart.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateDeleteNote(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.DeleteNote != nil {
|
||
if err := m.DeleteNote.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("deleteNote")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateDeliveryAddress(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.DeliveryAddress != nil {
|
||
if err := m.DeliveryAddress.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("deliveryAddress")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateMember(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.Member != nil {
|
||
if err := m.Member.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateMemberSignature(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.MemberSignature != nil {
|
||
if err := m.MemberSignature.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("memberSignature")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateNote(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.Note != nil {
|
||
if err := m.Note.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("note")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidatePaymentCardPayments(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.PaymentCardPayments); i++ {
|
||
|
||
if m.PaymentCardPayments[i] != nil {
|
||
if err := m.PaymentCardPayments[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("paymentCardPayments" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0) contextValidateSeller(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.Seller != nil {
|
||
if err := m.Seller.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("seller")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0Cart transactions response values items0 cart
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0Cart
|
||
type TransactionsResponseValuesItems0Cart struct {
|
||
|
||
// adjustment amount
|
||
// Example: 0
|
||
AdjustmentAmount float64 `json:"adjustmentAmount,omitempty"`
|
||
|
||
// after tax discount
|
||
// Example: 0
|
||
AfterTaxDiscount float64 `json:"afterTaxDiscount,omitempty"`
|
||
|
||
// applied after tax discount
|
||
// Example: 0
|
||
AppliedAfterTaxDiscount float64 `json:"appliedAfterTaxDiscount,omitempty"`
|
||
|
||
// balance due
|
||
// Example: 0
|
||
BalanceDue float64 `json:"balanceDue,omitempty"`
|
||
|
||
// calc cart discount
|
||
// Example: 0
|
||
CalcCartDiscount float64 `json:"calcCartDiscount,omitempty"`
|
||
|
||
// cash received
|
||
// Example: 120
|
||
CashReceived float64 `json:"cashReceived,omitempty"`
|
||
|
||
// change due
|
||
// Example: -4.92
|
||
ChangeDue float64 `json:"changeDue,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// consumer type
|
||
// Example: MedicinalThirdParty
|
||
ConsumerType string `json:"consumerType,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556055323017
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// credit card fee
|
||
// Example: 0
|
||
CreditCardFee float64 `json:"creditCardFee,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// delivery discount
|
||
// Example: 0
|
||
DeliveryDiscount float64 `json:"deliveryDiscount,omitempty"`
|
||
|
||
// delivery discount type
|
||
// Example: Cash
|
||
DeliveryDiscountType string `json:"deliveryDiscountType,omitempty"`
|
||
|
||
// delivery fee
|
||
// Example: 0
|
||
DeliveryFee float64 `json:"deliveryFee,omitempty"`
|
||
|
||
// delivery promotion Id
|
||
// Example: string
|
||
DeliveryPromotionID string `json:"deliveryPromotionId,omitempty"`
|
||
|
||
// discount
|
||
// Example: 0
|
||
Discount float64 `json:"discount,omitempty"`
|
||
|
||
// discount type
|
||
// Example: Percentage
|
||
DiscountType string `json:"discountType,omitempty"`
|
||
|
||
// enable credit card fee
|
||
// Example: false
|
||
EnableCreditCardFee bool `json:"enableCreditCardFee,omitempty"`
|
||
|
||
// enable delivery fee
|
||
// Example: false
|
||
EnableDeliveryFee bool `json:"enableDeliveryFee,omitempty"`
|
||
|
||
// final refund amt
|
||
// Example: 0
|
||
FinalRefundAmt float64 `json:"finalRefundAmt,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbf851b33b485082543b7a2
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// items
|
||
Items []*TransactionsResponseValuesItems0CartItemsItems0 `json:"items"`
|
||
|
||
// modified
|
||
// Example: 1556066737710
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// payment option
|
||
// Example: Cash
|
||
PaymentOption string `json:"paymentOption,omitempty"`
|
||
|
||
// payment type
|
||
// Example: Full
|
||
PaymentType string `json:"paymentType,omitempty"`
|
||
|
||
// point spent
|
||
// Example: 0
|
||
PointSpent float64 `json:"pointSpent,omitempty"`
|
||
|
||
// promo code
|
||
// Example: string
|
||
PromoCode string `json:"promoCode,omitempty"`
|
||
|
||
// promotion req logs
|
||
PromotionReqLogs []*TransactionsResponseValuesItems0CartPromotionReqLogsItems0 `json:"promotionReqLogs"`
|
||
|
||
// promotion reqs
|
||
PromotionReqs []*TransactionsResponseValuesItems0CartPromotionReqsItems0 `json:"promotionReqs"`
|
||
|
||
// refund amount
|
||
// Example: 0
|
||
RefundAmount float64 `json:"refundAmount,omitempty"`
|
||
|
||
// refund option
|
||
// Example: Void
|
||
RefundOption string `json:"refundOption,omitempty"`
|
||
|
||
// refund order item requests
|
||
RefundOrderItemRequests []*TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0 `json:"refundOrderItemRequests"`
|
||
|
||
// request refund amt
|
||
// Example: 0
|
||
RequestRefundAmt float64 `json:"requestRefundAmt,omitempty"`
|
||
|
||
// round amt
|
||
// Example: 0
|
||
RoundAmt float64 `json:"roundAmt,omitempty"`
|
||
|
||
// storage location
|
||
// Example: CashDrawer
|
||
StorageLocation string `json:"storageLocation,omitempty"`
|
||
|
||
// sub total
|
||
// Example: 90
|
||
SubTotal float64 `json:"subTotal,omitempty"`
|
||
|
||
// sub total discount
|
||
// Example: 90
|
||
SubTotalDiscount float64 `json:"subTotalDiscount,omitempty"`
|
||
|
||
// tax
|
||
// Example: 0.08
|
||
Tax float64 `json:"tax,omitempty"`
|
||
|
||
// tax result
|
||
TaxResult *TransactionsResponseValuesItems0CartTaxResult `json:"taxResult,omitempty"`
|
||
|
||
// tax table
|
||
TaxTable *TransactionsResponseValuesItems0CartTaxTable `json:"taxTable,omitempty"`
|
||
|
||
// total
|
||
// Example: 115.08
|
||
Total float64 `json:"total,omitempty"`
|
||
|
||
// total a l excise tax
|
||
// Example: 0
|
||
TotalALExciseTax float64 `json:"totalALExciseTax,omitempty"`
|
||
|
||
// total calc tax
|
||
// Example: 25.08
|
||
TotalCalcTax float64 `json:"totalCalcTax,omitempty"`
|
||
|
||
// total discount
|
||
// Example: 0
|
||
TotalDiscount float64 `json:"totalDiscount,omitempty"`
|
||
|
||
// total excise tax
|
||
// Example: 0
|
||
TotalExciseTax float64 `json:"totalExciseTax,omitempty"`
|
||
|
||
// total pre calc tax
|
||
// Example: 0
|
||
TotalPreCalcTax float64 `json:"totalPreCalcTax,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart
|
||
func (m *TransactionsResponseValuesItems0Cart) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateItems(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validatePromotionReqLogs(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validatePromotionReqs(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateRefundOrderItemRequests(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateTaxResult(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateTaxTable(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) validateItems(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Items) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.Items); i++ {
|
||
if swag.IsZero(m.Items[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.Items[i] != nil {
|
||
if err := m.Items[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "items" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) validatePromotionReqLogs(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.PromotionReqLogs) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.PromotionReqLogs); i++ {
|
||
if swag.IsZero(m.PromotionReqLogs[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.PromotionReqLogs[i] != nil {
|
||
if err := m.PromotionReqLogs[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "promotionReqLogs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) validatePromotionReqs(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.PromotionReqs) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.PromotionReqs); i++ {
|
||
if swag.IsZero(m.PromotionReqs[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.PromotionReqs[i] != nil {
|
||
if err := m.PromotionReqs[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "promotionReqs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) validateRefundOrderItemRequests(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.RefundOrderItemRequests) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.RefundOrderItemRequests); i++ {
|
||
if swag.IsZero(m.RefundOrderItemRequests[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.RefundOrderItemRequests[i] != nil {
|
||
if err := m.RefundOrderItemRequests[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "refundOrderItemRequests" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) validateTaxResult(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.TaxResult) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.TaxResult != nil {
|
||
if err := m.TaxResult.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "taxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) validateTaxTable(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.TaxTable) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.TaxTable != nil {
|
||
if err := m.TaxTable.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "taxTable")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 cart based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0Cart) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidateItems(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidatePromotionReqLogs(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidatePromotionReqs(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateRefundOrderItemRequests(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateTaxResult(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateTaxTable(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) contextValidateItems(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.Items); i++ {
|
||
|
||
if m.Items[i] != nil {
|
||
if err := m.Items[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "items" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) contextValidatePromotionReqLogs(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.PromotionReqLogs); i++ {
|
||
|
||
if m.PromotionReqLogs[i] != nil {
|
||
if err := m.PromotionReqLogs[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "promotionReqLogs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) contextValidatePromotionReqs(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.PromotionReqs); i++ {
|
||
|
||
if m.PromotionReqs[i] != nil {
|
||
if err := m.PromotionReqs[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "promotionReqs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) contextValidateRefundOrderItemRequests(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.RefundOrderItemRequests); i++ {
|
||
|
||
if m.RefundOrderItemRequests[i] != nil {
|
||
if err := m.RefundOrderItemRequests[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "refundOrderItemRequests" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) contextValidateTaxResult(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.TaxResult != nil {
|
||
if err := m.TaxResult.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "taxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Cart) contextValidateTaxTable(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.TaxTable != nil {
|
||
if err := m.TaxTable.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "taxTable")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Cart) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Cart) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0Cart
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0 transactions response values items0 cart items items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0
|
||
type TransactionsResponseValuesItems0CartItemsItems0 struct {
|
||
|
||
// available discount qty
|
||
// Example: 0
|
||
AvailableDiscountQty float64 `json:"availableDiscountQty,omitempty"`
|
||
|
||
// batch Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
BatchID string `json:"batchId,omitempty"`
|
||
|
||
// batch sku
|
||
// Example: 0
|
||
BatchSku string `json:"batchSku,omitempty"`
|
||
|
||
// calc cultivation tax
|
||
// Example: 0
|
||
CalcCultivationTax float64 `json:"calcCultivationTax,omitempty"`
|
||
|
||
// calc discount
|
||
// Example: 0
|
||
CalcDiscount float64 `json:"calcDiscount,omitempty"`
|
||
|
||
// calc pre tax
|
||
// Example: 0
|
||
CalcPreTax float64 `json:"calcPreTax,omitempty"`
|
||
|
||
// calc tax
|
||
// Example: 8.3147
|
||
CalcTax float64 `json:"calcTax,omitempty"`
|
||
|
||
// cogs
|
||
// Example: 69.1
|
||
Cogs float64 `json:"cogs,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// cost
|
||
// Example: 45
|
||
Cost float64 `json:"cost,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556055338248
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// discount
|
||
// Example: 0
|
||
Discount float64 `json:"discount,omitempty"`
|
||
|
||
// discount type
|
||
// Example: Cash
|
||
DiscountType string `json:"discountType,omitempty"`
|
||
|
||
// discounted qty
|
||
// Example: 0
|
||
DiscountedQty float64 `json:"discountedQty,omitempty"`
|
||
|
||
// exchange amount
|
||
// Example: 0
|
||
ExchangeAmount float64 `json:"exchangeAmount,omitempty"`
|
||
|
||
// exchange qty
|
||
// Example: 0
|
||
ExchangeQty float64 `json:"exchangeQty,omitempty"`
|
||
|
||
// excise tax
|
||
// Example: 0.7135
|
||
ExciseTax float64 `json:"exciseTax,omitempty"`
|
||
|
||
// final price
|
||
// Example: 45
|
||
FinalPrice float64 `json:"finalPrice,omitempty"`
|
||
|
||
// finalized
|
||
// Example: false
|
||
Finalized bool `json:"finalized,omitempty"`
|
||
|
||
// fulfilled
|
||
// Example: true
|
||
Fulfilled bool `json:"fulfilled,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbf852a1d5dbc081de754fa
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// ignore mix match
|
||
// Example: false
|
||
IgnoreMixMatch bool `json:"ignoreMixMatch,omitempty"`
|
||
|
||
// mix matched
|
||
// Example: false
|
||
MixMatched bool `json:"mixMatched,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737723
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// order item Id
|
||
// Example: 6c569a3e-1641-46ed-a0cd-7a5eed7064a7
|
||
OrderItemID string `json:"orderItemId,omitempty"`
|
||
|
||
// orig quantity
|
||
// Example: 1
|
||
OrigQuantity float64 `json:"origQuantity,omitempty"`
|
||
|
||
// override price
|
||
// Example: 0
|
||
OverridePrice float64 `json:"overridePrice,omitempty"`
|
||
|
||
// per unit refund amt
|
||
// Example: 0
|
||
PerUnitRefundAmt float64 `json:"perUnitRefundAmt,omitempty"`
|
||
|
||
// prepackage
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
Prepackage string `json:"prepackage,omitempty"`
|
||
|
||
// prepackage Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
PrepackageID string `json:"prepackageId,omitempty"`
|
||
|
||
// prepackage item Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
PrepackageItemID string `json:"prepackageItemId,omitempty"`
|
||
|
||
// prepackage product item
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
PrepackageProductItem string `json:"prepackageProductItem,omitempty"`
|
||
|
||
// prepared qty
|
||
// Example: 0
|
||
PreparedQty float64 `json:"preparedQty,omitempty"`
|
||
|
||
// product
|
||
// Example: 0
|
||
Product float64 `json:"product,omitempty"`
|
||
|
||
// product Id
|
||
// Example: 5cbb4dec90427708240820c3
|
||
ProductID string `json:"productId,omitempty"`
|
||
|
||
// promotion reqs
|
||
PromotionReqs []*TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0 `json:"promotionReqs"`
|
||
|
||
// quantity
|
||
// Example: 1
|
||
Quantity float64 `json:"quantity,omitempty"`
|
||
|
||
// quantity logs
|
||
QuantityLogs []*TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0 `json:"quantityLogs"`
|
||
|
||
// status
|
||
// Example: Active
|
||
Status string `json:"status,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax result
|
||
TaxResult *TransactionsResponseValuesItems0CartItemsItems0TaxResult `json:"taxResult,omitempty"`
|
||
|
||
// tax table
|
||
TaxTable *TransactionsResponseValuesItems0CartItemsItems0TaxTable `json:"taxTable,omitempty"`
|
||
|
||
// tax type
|
||
// Example: Inherit
|
||
TaxType string `json:"taxType,omitempty"`
|
||
|
||
// total refund amount
|
||
// Example: 0
|
||
TotalRefundAmount float64 `json:"totalRefundAmount,omitempty"`
|
||
|
||
// total refund qty
|
||
// Example: 1
|
||
TotalRefundQty float64 `json:"totalRefundQty,omitempty"`
|
||
|
||
// txn line ID
|
||
// Example: 0
|
||
TxnLineID float64 `json:"txnLineID,omitempty"`
|
||
|
||
// unit price
|
||
// Example: 45
|
||
UnitPrice float64 `json:"unitPrice,omitempty"`
|
||
|
||
// unit qty
|
||
// Example: 0
|
||
UnitQty float64 `json:"unitQty,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// use unit qty
|
||
// Example: false
|
||
UseUnitQty bool `json:"useUnitQty,omitempty"`
|
||
|
||
// weight key
|
||
// Example: UNIT
|
||
WeightKey string `json:"weightKey,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validatePromotionReqs(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateQuantityLogs(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateTaxResult(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateTaxTable(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) validatePromotionReqs(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.PromotionReqs) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.PromotionReqs); i++ {
|
||
if swag.IsZero(m.PromotionReqs[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.PromotionReqs[i] != nil {
|
||
if err := m.PromotionReqs[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("promotionReqs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) validateQuantityLogs(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.QuantityLogs) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.QuantityLogs); i++ {
|
||
if swag.IsZero(m.QuantityLogs[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.QuantityLogs[i] != nil {
|
||
if err := m.QuantityLogs[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("quantityLogs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) validateTaxResult(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.TaxResult) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.TaxResult != nil {
|
||
if err := m.TaxResult.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("taxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) validateTaxTable(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.TaxTable) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.TaxTable != nil {
|
||
if err := m.TaxTable.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("taxTable")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 cart items items0 based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidatePromotionReqs(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateQuantityLogs(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateTaxResult(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateTaxTable(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) contextValidatePromotionReqs(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.PromotionReqs); i++ {
|
||
|
||
if m.PromotionReqs[i] != nil {
|
||
if err := m.PromotionReqs[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("promotionReqs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) contextValidateQuantityLogs(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.QuantityLogs); i++ {
|
||
|
||
if m.QuantityLogs[i] != nil {
|
||
if err := m.QuantityLogs[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("quantityLogs" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) contextValidateTaxResult(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.TaxResult != nil {
|
||
if err := m.TaxResult.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("taxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) contextValidateTaxTable(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.TaxTable != nil {
|
||
if err := m.TaxTable.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("taxTable")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0 transactions response values items0 cart items items0 promotion reqs items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0
|
||
type TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0 struct {
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556440873514
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cc567291d31b9081bed54fa
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556440873514
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// promotion Id
|
||
// Example: 5cc521e25fecd30808bc1c97
|
||
PromotionID string `json:"promotionId,omitempty"`
|
||
|
||
// reward Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
RewardID string `json:"rewardId,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 promotion reqs items0
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 promotion reqs items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0PromotionReqsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0 transactions response values items0 cart items items0 quantity logs items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0
|
||
type TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0 struct {
|
||
|
||
// batch Id
|
||
// Example: 5cbea8d5f3a077080f237ce3
|
||
BatchID string `json:"batchId,omitempty"`
|
||
|
||
// id
|
||
// Example: 6c569a3e-1641-46ed-a0cd-7a5eed7064a7_5c9fe425e0faca07db94b990_5cbea8d5f3a077080f237ce3
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// inventory Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
InventoryID string `json:"inventoryId,omitempty"`
|
||
|
||
// prepackage item Id
|
||
// Example: 5c9fe425e0faca07db94b990
|
||
PrepackageItemID string `json:"prepackageItemId,omitempty"`
|
||
|
||
// quantity
|
||
// Example: 1
|
||
Quantity float64 `json:"quantity,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 quantity logs items0
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 quantity logs items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0QuantityLogsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxResult transactions response values items0 cart items items0 tax result
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxResult
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxResult struct {
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// cultivation tax result
|
||
CultivationTaxResult *TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult `json:"cultivationTaxResult,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a8
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// total a l excise tax
|
||
// Example: 4.224
|
||
TotalALExciseTax float64 `json:"totalALExciseTax,omitempty"`
|
||
|
||
// total a l post excise tax
|
||
// Example: 4.224
|
||
TotalALPostExciseTax float64 `json:"totalALPostExciseTax,omitempty"`
|
||
|
||
// total city pre tax
|
||
// Example: 0
|
||
TotalCityPreTax float64 `json:"totalCityPreTax,omitempty"`
|
||
|
||
// total city tax
|
||
// Example: 4.9224
|
||
TotalCityTax float64 `json:"totalCityTax,omitempty"`
|
||
|
||
// total county pre tax
|
||
// Example: 0
|
||
TotalCountyPreTax float64 `json:"totalCountyPreTax,omitempty"`
|
||
|
||
// total county tax
|
||
// Example: 0.1354
|
||
TotalCountyTax float64 `json:"totalCountyTax,omitempty"`
|
||
|
||
// total excise tax
|
||
// Example: 0
|
||
TotalExciseTax float64 `json:"totalExciseTax,omitempty"`
|
||
|
||
// total fed pre tax
|
||
// Example: 0
|
||
TotalFedPreTax float64 `json:"totalFedPreTax,omitempty"`
|
||
|
||
// total fed tax
|
||
// Example: 0
|
||
TotalFedTax float64 `json:"totalFedTax,omitempty"`
|
||
|
||
// total n a l pre excise tax
|
||
// Example: 0
|
||
TotalNALPreExciseTax float64 `json:"totalNALPreExciseTax,omitempty"`
|
||
|
||
// total post calc tax
|
||
// Example: 8.3147
|
||
TotalPostCalcTax float64 `json:"totalPostCalcTax,omitempty"`
|
||
|
||
// total pre calc tax
|
||
// Example: 0
|
||
TotalPreCalcTax float64 `json:"totalPreCalcTax,omitempty"`
|
||
|
||
// total state pre tax
|
||
// Example: 0
|
||
TotalStatePreTax float64 `json:"totalStatePreTax,omitempty"`
|
||
|
||
// total state tax
|
||
// Example: 3.2569
|
||
TotalStateTax float64 `json:"totalStateTax,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax result
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResult) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateCultivationTaxResult(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResult) validateCultivationTaxResult(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.CultivationTaxResult) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.CultivationTaxResult != nil {
|
||
if err := m.CultivationTaxResult.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("taxResult" + "." + "cultivationTaxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 cart items items0 tax result based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidateCultivationTaxResult(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResult) contextValidateCultivationTaxResult(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.CultivationTaxResult != nil {
|
||
if err := m.CultivationTaxResult.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("taxResult" + "." + "cultivationTaxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResult) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResult) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxResult
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult transactions response values items0 cart items items0 tax result cultivation tax result
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult struct {
|
||
|
||
// flower tax oz
|
||
// Example: 0
|
||
FlowerTaxOz float64 `json:"flowerTaxOz,omitempty"`
|
||
|
||
// leaf tax oz
|
||
// Example: 0
|
||
LeafTaxOz float64 `json:"leafTaxOz,omitempty"`
|
||
|
||
// total cultivation tax
|
||
// Example: 0
|
||
TotalCultivationTax float64 `json:"totalCultivationTax,omitempty"`
|
||
|
||
// total flower oz
|
||
// Example: 0
|
||
TotalFlowerOz float64 `json:"totalFlowerOz,omitempty"`
|
||
|
||
// total flower tax
|
||
// Example: 0
|
||
TotalFlowerTax float64 `json:"totalFlowerTax,omitempty"`
|
||
|
||
// total leaf oz
|
||
// Example: 0
|
||
TotalLeafOz float64 `json:"totalLeafOz,omitempty"`
|
||
|
||
// total leaf tax
|
||
// Example: 0
|
||
TotalLeafTax float64 `json:"totalLeafTax,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax result cultivation tax result
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 tax result cultivation tax result based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxResultCultivationTaxResult
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxTable transactions response values items0 cart items items0 tax table
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxTable
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxTable struct {
|
||
|
||
// active
|
||
// Example: false
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// city tax
|
||
CityTax *TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax `json:"cityTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// consumer type
|
||
// Example: MedicinalThirdParty
|
||
ConsumerType string `json:"consumerType,omitempty"`
|
||
|
||
// county tax
|
||
CountyTax *TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax `json:"countyTax,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// federal tax
|
||
FederalTax *TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax `json:"federalTax,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a9
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: Medicinal - Third Party
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// state tax
|
||
StateTax *TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax `json:"stateTax,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax type
|
||
// Example: Custom
|
||
TaxType string `json:"taxType,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax table
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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 *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "cityTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "countyTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "federalTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "stateTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 cart items items0 tax table based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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 *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "cityTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "countyTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "federalTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) 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("taxTable" + "." + "stateTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTable) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxTable
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax transactions response values items0 cart items items0 tax table city tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: true
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: true
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111aa
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 10
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: City
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax table city tax
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 tax table city tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxTableCityTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax transactions response values items0 cart items items0 tax table county tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: true
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: true
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111ab
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 0.25
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: County
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax table county tax
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 tax table county tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxTableCountyTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax transactions response values items0 cart items items0 tax table federal tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax struct {
|
||
|
||
// active
|
||
// Example: false
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: false
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: false
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111ad
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 0
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: Federal
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax table federal tax
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 tax table federal tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxTableFederalTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax transactions response values items0 cart items items0 tax table state tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax
|
||
type TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: true
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: true
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111ac
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 6
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: State
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart items items0 tax table state tax
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart items items0 tax table state tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartItemsItems0TaxTableStateTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartPromotionReqLogsItems0 transactions response values items0 cart promotion req logs items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartPromotionReqLogsItems0
|
||
type TransactionsResponseValuesItems0CartPromotionReqLogsItems0 struct {
|
||
|
||
// amount
|
||
// Example: 12
|
||
Amount float64 `json:"amount,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556233486913
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cc23d0efbbb0e08264c3cc7
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556233486913
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// promotion Id
|
||
// Example: 5cbf6612e0faca07f6364ed1
|
||
PromotionID string `json:"promotionId,omitempty"`
|
||
|
||
// promotion type
|
||
// Example: Cart
|
||
PromotionType string `json:"promotionType,omitempty"`
|
||
|
||
// reward Id
|
||
// Example: string
|
||
RewardID string `json:"rewardId,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart promotion req logs items0
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqLogsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart promotion req logs items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqLogsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqLogsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqLogsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartPromotionReqLogsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartPromotionReqsItems0 transactions response values items0 cart promotion reqs items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartPromotionReqsItems0
|
||
type TransactionsResponseValuesItems0CartPromotionReqsItems0 struct {
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556233486896
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cc23d0efbbb0e08264c3cc2
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556233486896
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// promotion Id
|
||
// Example: 5cbf6612e0faca07f6364ed1
|
||
PromotionID string `json:"promotionId,omitempty"`
|
||
|
||
// reward Id
|
||
// Example: string
|
||
RewardID string `json:"rewardId,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart promotion reqs items0
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart promotion reqs items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartPromotionReqsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartPromotionReqsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0 transactions response values items0 cart refund order item requests items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0
|
||
type TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0 struct {
|
||
|
||
// order item Id
|
||
// Example: 6c569a3e-1641-46ed-a0cd-7a5eed7064a7
|
||
OrderItemID string `json:"orderItemId,omitempty"`
|
||
|
||
// quantity
|
||
// Example: 1
|
||
Quantity float64 `json:"quantity,omitempty"`
|
||
|
||
// refund amt
|
||
// Example: 45
|
||
RefundAmt float64 `json:"refundAmt,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart refund order item requests items0
|
||
func (m *TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart refund order item requests items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartRefundOrderItemRequestsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxResult transactions response values items0 cart tax result
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxResult
|
||
type TransactionsResponseValuesItems0CartTaxResult struct {
|
||
|
||
// created
|
||
// Example: 1556066737751
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// cultivation tax result
|
||
CultivationTaxResult *TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult `json:"cultivationTaxResult,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111b4
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737751
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// total a l excise tax
|
||
// Example: 0
|
||
TotalALExciseTax float64 `json:"totalALExciseTax,omitempty"`
|
||
|
||
// total a l post excise tax
|
||
// Example: 8.45
|
||
TotalALPostExciseTax float64 `json:"totalALPostExciseTax,omitempty"`
|
||
|
||
// total city pre tax
|
||
// Example: 0
|
||
TotalCityPreTax float64 `json:"totalCityPreTax,omitempty"`
|
||
|
||
// total city tax
|
||
// Example: 9.84
|
||
TotalCityTax float64 `json:"totalCityTax,omitempty"`
|
||
|
||
// total county pre tax
|
||
// Example: 0
|
||
TotalCountyPreTax float64 `json:"totalCountyPreTax,omitempty"`
|
||
|
||
// total county tax
|
||
// Example: 0.27
|
||
TotalCountyTax float64 `json:"totalCountyTax,omitempty"`
|
||
|
||
// total excise tax
|
||
// Example: 0
|
||
TotalExciseTax float64 `json:"totalExciseTax,omitempty"`
|
||
|
||
// total fed pre tax
|
||
// Example: 0
|
||
TotalFedPreTax float64 `json:"totalFedPreTax,omitempty"`
|
||
|
||
// total fed tax
|
||
// Example: 0
|
||
TotalFedTax float64 `json:"totalFedTax,omitempty"`
|
||
|
||
// total n a l pre excise tax
|
||
// Example: 0
|
||
TotalNALPreExciseTax float64 `json:"totalNALPreExciseTax,omitempty"`
|
||
|
||
// total post calc tax
|
||
// Example: 25.08
|
||
TotalPostCalcTax float64 `json:"totalPostCalcTax,omitempty"`
|
||
|
||
// total pre calc tax
|
||
// Example: 0
|
||
TotalPreCalcTax float64 `json:"totalPreCalcTax,omitempty"`
|
||
|
||
// total state pre tax
|
||
// Example: 0
|
||
TotalStatePreTax float64 `json:"totalStatePreTax,omitempty"`
|
||
|
||
// total state tax
|
||
// Example: 6.51
|
||
TotalStateTax float64 `json:"totalStateTax,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax result
|
||
func (m *TransactionsResponseValuesItems0CartTaxResult) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateCultivationTaxResult(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxResult) validateCultivationTaxResult(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.CultivationTaxResult) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.CultivationTaxResult != nil {
|
||
if err := m.CultivationTaxResult.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "taxResult" + "." + "cultivationTaxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 cart tax result based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidateCultivationTaxResult(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxResult) contextValidateCultivationTaxResult(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.CultivationTaxResult != nil {
|
||
if err := m.CultivationTaxResult.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("cart" + "." + "taxResult" + "." + "cultivationTaxResult")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxResult) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxResult) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxResult
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult transactions response values items0 cart tax result cultivation tax result
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult
|
||
type TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult struct {
|
||
|
||
// flower tax oz
|
||
// Example: 0
|
||
FlowerTaxOz float64 `json:"flowerTaxOz,omitempty"`
|
||
|
||
// leaf tax oz
|
||
// Example: 0
|
||
LeafTaxOz float64 `json:"leafTaxOz,omitempty"`
|
||
|
||
// total cultivation tax
|
||
// Example: 0
|
||
TotalCultivationTax float64 `json:"totalCultivationTax,omitempty"`
|
||
|
||
// total flower oz
|
||
// Example: 0
|
||
TotalFlowerOz float64 `json:"totalFlowerOz,omitempty"`
|
||
|
||
// total flower tax
|
||
// Example: 0
|
||
TotalFlowerTax float64 `json:"totalFlowerTax,omitempty"`
|
||
|
||
// total leaf oz
|
||
// Example: 0
|
||
TotalLeafOz float64 `json:"totalLeafOz,omitempty"`
|
||
|
||
// total leaf tax
|
||
// Example: 0
|
||
TotalLeafTax float64 `json:"totalLeafTax,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax result cultivation tax result
|
||
func (m *TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart tax result cultivation tax result based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxResultCultivationTaxResult
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxTable transactions response values items0 cart tax table
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxTable
|
||
type TransactionsResponseValuesItems0CartTaxTable struct {
|
||
|
||
// active
|
||
// Example: false
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// city tax
|
||
CityTax *TransactionsResponseValuesItems0CartTaxTableCityTax `json:"cityTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// consumer type
|
||
// Example: MedicinalThirdParty
|
||
ConsumerType string `json:"consumerType,omitempty"`
|
||
|
||
// county tax
|
||
CountyTax *TransactionsResponseValuesItems0CartTaxTableCountyTax `json:"countyTax,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737713
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// federal tax
|
||
FederalTax *TransactionsResponseValuesItems0CartTaxTableFederalTax `json:"federalTax,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a1
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737713
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: Medicinal - Third Party
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// state tax
|
||
StateTax *TransactionsResponseValuesItems0CartTaxTableStateTax `json:"stateTax,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax type
|
||
// Example: Custom
|
||
TaxType string `json:"taxType,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax table
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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 *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "cityTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "countyTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "federalTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "stateTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 cart tax table based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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 *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "cityTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "countyTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "federalTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) 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("cart" + "." + "taxTable" + "." + "stateTax")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTable) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxTable
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxTableCityTax transactions response values items0 cart tax table city tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxTableCityTax
|
||
type TransactionsResponseValuesItems0CartTaxTableCityTax struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: true
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: true
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737713
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a2
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737713
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 10
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: City
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax table city tax
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCityTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart tax table city tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCityTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCityTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCityTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxTableCityTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxTableCountyTax transactions response values items0 cart tax table county tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxTableCountyTax
|
||
type TransactionsResponseValuesItems0CartTaxTableCountyTax struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: true
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: true
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737713
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a3
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737713
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 0.25
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: County
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax table county tax
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCountyTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart tax table county tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCountyTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCountyTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableCountyTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxTableCountyTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxTableFederalTax transactions response values items0 cart tax table federal tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxTableFederalTax
|
||
type TransactionsResponseValuesItems0CartTaxTableFederalTax struct {
|
||
|
||
// active
|
||
// Example: false
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: false
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: false
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737713
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a5
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737713
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 0
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: Federal
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax table federal tax
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableFederalTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart tax table federal tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableFederalTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableFederalTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableFederalTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxTableFederalTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0CartTaxTableStateTax transactions response values items0 cart tax table state tax
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0CartTaxTableStateTax
|
||
type TransactionsResponseValuesItems0CartTaxTableStateTax struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// active excise tax
|
||
// Example: true
|
||
ActiveExciseTax bool `json:"activeExciseTax,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// compound
|
||
// Example: true
|
||
Compound bool `json:"compound,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737713
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded08124111a4
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737713
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// tax order
|
||
// Example: PostTaxed
|
||
TaxOrder string `json:"taxOrder,omitempty"`
|
||
|
||
// tax rate
|
||
// Example: 6
|
||
TaxRate float64 `json:"taxRate,omitempty"`
|
||
|
||
// territory
|
||
// Example: State
|
||
Territory string `json:"territory,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 cart tax table state tax
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableStateTax) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 cart tax table state tax based on context it is used
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableStateTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableStateTax) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0CartTaxTableStateTax) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0CartTaxTableStateTax
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0DeleteNote transactions response values items0 delete note
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0DeleteNote
|
||
type TransactionsResponseValuesItems0DeleteNote struct {
|
||
|
||
// created
|
||
// Example: 1557363743758
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// enable on fleet
|
||
// Example: false
|
||
EnableOnFleet bool `json:"enableOnFleet,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd37c1f819d9e27ca3ed854
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// message
|
||
// Example: Duplicate Transaction
|
||
Message string `json:"message,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557363743758
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// writer Id
|
||
// Example: string
|
||
WriterID string `json:"writerId,omitempty"`
|
||
|
||
// writer name
|
||
// Example: string
|
||
WriterName string `json:"writerName,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 delete note
|
||
func (m *TransactionsResponseValuesItems0DeleteNote) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 delete note based on context it is used
|
||
func (m *TransactionsResponseValuesItems0DeleteNote) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0DeleteNote) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0DeleteNote) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0DeleteNote
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0DeliveryAddress transactions response values items0 delivery address
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0DeliveryAddress
|
||
type TransactionsResponseValuesItems0DeliveryAddress struct {
|
||
|
||
// address
|
||
// Example: 25016 River Walk Ln.
|
||
Address string `json:"address,omitempty"`
|
||
|
||
// address line1
|
||
AddressLine1 string `json:"addressLine1,omitempty"`
|
||
|
||
// city
|
||
// Example: Santa Clarita
|
||
City string `json:"city,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// country
|
||
// Example: US
|
||
Country string `json:"country,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066737667
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb1b176dded081241118e
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066737667
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// state
|
||
// Example: CA
|
||
State string `json:"state,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// zip code
|
||
// Example: 91383
|
||
ZipCode string `json:"zipCode,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 delivery address
|
||
func (m *TransactionsResponseValuesItems0DeliveryAddress) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 delivery address based on context it is used
|
||
func (m *TransactionsResponseValuesItems0DeliveryAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0DeliveryAddress) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0DeliveryAddress) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0DeliveryAddress
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0Member transactions response values items0 member
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0Member
|
||
type TransactionsResponseValuesItems0Member struct {
|
||
|
||
// address
|
||
Address *TransactionsResponseValuesItems0MemberAddress `json:"address,omitempty"`
|
||
|
||
// agreement expired
|
||
// Example: false
|
||
AgreementExpired bool `json:"agreementExpired,omitempty"`
|
||
|
||
// anonymous
|
||
// Example: false
|
||
Anonymous bool `json:"anonymous,omitempty"`
|
||
|
||
// ban patient
|
||
// Example: false
|
||
BanPatient bool `json:"banPatient,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// consumer type
|
||
// Example: AdultUse
|
||
ConsumerType string `json:"consumerType,omitempty"`
|
||
|
||
// consumer user Id
|
||
// Example: 5cd30b53c3226a084423f9ad
|
||
ConsumerUserID string `json:"consumerUserId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557334153111
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// dl expired
|
||
// Example: false
|
||
DlExpired bool `json:"dlExpired,omitempty"`
|
||
|
||
// dob
|
||
// Example: 391158000000
|
||
Dob float64 `json:"dob,omitempty"`
|
||
|
||
// email
|
||
// Example: rachel_witmer@yahoo.com
|
||
Email string `json:"email,omitempty"`
|
||
|
||
// email opt in
|
||
// Example: true
|
||
EmailOptIn bool `json:"emailOptIn,omitempty"`
|
||
|
||
// email verified
|
||
// Example: false
|
||
EmailVerified bool `json:"emailVerified,omitempty"`
|
||
|
||
// enable loyalty
|
||
// Example: true
|
||
EnableLoyalty bool `json:"enableLoyalty,omitempty"`
|
||
|
||
// enabled care giver
|
||
// Example: false
|
||
EnabledCareGiver bool `json:"enabledCareGiver,omitempty"`
|
||
|
||
// first name
|
||
// Example: Rachel
|
||
FirstName string `json:"firstName,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd30889e0faca07d2824d83
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// identifications
|
||
Identifications []*TransactionsResponseValuesItems0MemberIdentificationsItems0 `json:"identifications"`
|
||
|
||
// import Id
|
||
// Example: string
|
||
ImportID string `json:"importId,omitempty"`
|
||
|
||
// last name
|
||
// Example: Whitmer
|
||
LastName string `json:"lastName,omitempty"`
|
||
|
||
// last visit date
|
||
// Example: 1557334153112
|
||
LastVisitDate float64 `json:"lastVisitDate,omitempty"`
|
||
|
||
// lifetime points
|
||
// Example: 0
|
||
LifetimePoints float64 `json:"lifetimePoints,omitempty"`
|
||
|
||
// loyalty points
|
||
// Example: 0
|
||
LoyaltyPoints float64 `json:"loyaltyPoints,omitempty"`
|
||
|
||
// marketing source
|
||
// Example: On Deck
|
||
MarketingSource string `json:"marketingSource,omitempty"`
|
||
|
||
// medical
|
||
// Example: false
|
||
Medical bool `json:"medical,omitempty"`
|
||
|
||
// member group
|
||
MemberGroup *TransactionsResponseValuesItems0MemberMemberGroup `json:"memberGroup,omitempty"`
|
||
|
||
// member group Id
|
||
// Example: 5c7e8c7b722ed607e61edb25
|
||
MemberGroupID string `json:"memberGroupId,omitempty"`
|
||
|
||
// middle name
|
||
// Example: string
|
||
MiddleName string `json:"middleName,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557335083796
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// primary phone
|
||
// Example: (630) 294-0678
|
||
PrimaryPhone string `json:"primaryPhone,omitempty"`
|
||
|
||
// qb mapping
|
||
// Example: string
|
||
QbMapping string `json:"qbMapping,omitempty"`
|
||
|
||
// recommendation expired
|
||
// Example: true
|
||
RecommendationExpired bool `json:"recommendationExpired,omitempty"`
|
||
|
||
// recommendation expiry left
|
||
// Example: 0
|
||
RecommendationExpiryLeft float64 `json:"recommendationExpiryLeft,omitempty"`
|
||
|
||
// recommendations
|
||
Recommendations []*TransactionsResponseValuesItems0MemberRecommendationsItems0 `json:"recommendations"`
|
||
|
||
// region Id
|
||
// Example: string
|
||
RegionID string `json:"regionId,omitempty"`
|
||
|
||
// search text
|
||
// Example: rachel whitmer 23708 vía andorra rachel_witmer@yahoo.com (630) 294-0678 delivery
|
||
SearchText string `json:"searchText,omitempty"`
|
||
|
||
// sex
|
||
// Example: 1
|
||
Sex float64 `json:"sex,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// start date
|
||
// Example: 1557334153112
|
||
StartDate float64 `json:"startDate,omitempty"`
|
||
|
||
// status
|
||
// Example: Active
|
||
Status string `json:"status,omitempty"`
|
||
|
||
// text opt in
|
||
// Example: true
|
||
TextOptIn bool `json:"textOptIn,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member
|
||
func (m *TransactionsResponseValuesItems0Member) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateAddress(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateIdentifications(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateMemberGroup(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateRecommendations(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) 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("member" + "." + "address")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) validateIdentifications(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Identifications) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.Identifications); i++ {
|
||
if swag.IsZero(m.Identifications[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.Identifications[i] != nil {
|
||
if err := m.Identifications[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member" + "." + "identifications" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) validateMemberGroup(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.MemberGroup) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.MemberGroup != nil {
|
||
if err := m.MemberGroup.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member" + "." + "memberGroup")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) validateRecommendations(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.Recommendations) { // not required
|
||
return nil
|
||
}
|
||
|
||
for i := 0; i < len(m.Recommendations); i++ {
|
||
if swag.IsZero(m.Recommendations[i]) { // not required
|
||
continue
|
||
}
|
||
|
||
if m.Recommendations[i] != nil {
|
||
if err := m.Recommendations[i].Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member" + "." + "recommendations" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 member based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0Member) 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.contextValidateIdentifications(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateMemberGroup(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateRecommendations(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) 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("member" + "." + "address")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) contextValidateIdentifications(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.Identifications); i++ {
|
||
|
||
if m.Identifications[i] != nil {
|
||
if err := m.Identifications[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member" + "." + "identifications" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) contextValidateMemberGroup(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.MemberGroup != nil {
|
||
if err := m.MemberGroup.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member" + "." + "memberGroup")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Member) contextValidateRecommendations(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
for i := 0; i < len(m.Recommendations); i++ {
|
||
|
||
if m.Recommendations[i] != nil {
|
||
if err := m.Recommendations[i].ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("member" + "." + "recommendations" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Member) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Member) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0Member
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberAddress transactions response values items0 member address
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberAddress
|
||
type TransactionsResponseValuesItems0MemberAddress struct {
|
||
|
||
// address
|
||
// Example: 23708 Via Andorra
|
||
Address string `json:"address,omitempty"`
|
||
|
||
// address line1
|
||
AddressLine1 string `json:"addressLine1,omitempty"`
|
||
|
||
// city
|
||
// Example: Santa Clarita
|
||
City string `json:"city,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// country
|
||
// Example: US
|
||
Country string `json:"country,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557335083553
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd30c2be0faca07d28264a2
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557335083553
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// state
|
||
// Example: CA
|
||
State string `json:"state,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// zip code
|
||
// Example: 91355
|
||
ZipCode string `json:"zipCode,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member address
|
||
func (m *TransactionsResponseValuesItems0MemberAddress) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 member address based on context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberAddress) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberAddress) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberAddress
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberIdentificationsItems0 transactions response values items0 member identifications items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberIdentificationsItems0
|
||
type TransactionsResponseValuesItems0MemberIdentificationsItems0 struct {
|
||
|
||
// assets
|
||
Assets []*TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0 `json:"assets"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557334153113
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// expiration date
|
||
// Example: 1653462000000
|
||
ExpirationDate float64 `json:"expirationDate,omitempty"`
|
||
|
||
// front photo
|
||
FrontPhoto *TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto `json:"frontPhoto,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd30889e0faca07d2824d81
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// license number
|
||
// Example: B8669788
|
||
LicenseNumber string `json:"licenseNumber,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557334153113
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// state
|
||
// Example: string
|
||
State string `json:"state,omitempty"`
|
||
|
||
// type
|
||
// Example: string
|
||
Type string `json:"type,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// verified
|
||
// Example: false
|
||
Verified bool `json:"verified,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member identifications items0
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateAssets(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateFrontPhoto(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) 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("assets" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) validateFrontPhoto(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.FrontPhoto) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.FrontPhoto != nil {
|
||
if err := m.FrontPhoto.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("frontPhoto")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 member identifications items0 based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.contextValidateAssets(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.contextValidateFrontPhoto(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) 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("assets" + "." + strconv.Itoa(i))
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) contextValidateFrontPhoto(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.FrontPhoto != nil {
|
||
if err := m.FrontPhoto.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("frontPhoto")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberIdentificationsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0 transactions response values items0 member identifications items0 assets items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0
|
||
type TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0 struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// asset type
|
||
// Example: Photo
|
||
AssetType string `json:"assetType,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557334147632
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd308830c9ccc081b8a271d
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// key
|
||
// Example: 187ea16f-92cb-44e8-92f9-364efd4a6bff.png
|
||
Key string `json:"key,omitempty"`
|
||
|
||
// large URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-800x800.png
|
||
LargeURL string `json:"largeURL,omitempty"`
|
||
|
||
// large x2 URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-1600x1600.png
|
||
LargeX2URL string `json:"largeX2URL,omitempty"`
|
||
|
||
// medium URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-500x500.png
|
||
MediumURL string `json:"mediumURL,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557334147632
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: Screen Shot 2019-05-08 at 9.46.57 AM.png
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// orig URL
|
||
// Example: string
|
||
OrigURL string `json:"origURL,omitempty"`
|
||
|
||
// priority
|
||
// Example: 0
|
||
Priority float64 `json:"priority,omitempty"`
|
||
|
||
// public URL
|
||
// Example: string
|
||
PublicURL string `json:"publicURL,omitempty"`
|
||
|
||
// secured
|
||
// Example: true
|
||
Secured bool `json:"secured,omitempty"`
|
||
|
||
// thumb URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-200x200.png
|
||
ThumbURL string `json:"thumbURL,omitempty"`
|
||
|
||
// type
|
||
// Example: Photo
|
||
Type string `json:"type,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member identifications items0 assets items0
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 member identifications items0 assets items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberIdentificationsItems0AssetsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto transactions response values items0 member identifications items0 front photo
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto
|
||
type TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// asset type
|
||
// Example: Photo
|
||
AssetType string `json:"assetType,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557334147632
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd308830c9ccc081b8a271d
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// key
|
||
// Example: 187ea16f-92cb-44e8-92f9-364efd4a6bff.png
|
||
Key string `json:"key,omitempty"`
|
||
|
||
// large URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-800x800.png
|
||
LargeURL string `json:"largeURL,omitempty"`
|
||
|
||
// large x2 URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-1600x1600.png
|
||
LargeX2URL string `json:"largeX2URL,omitempty"`
|
||
|
||
// medium URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-500x500.png
|
||
MediumURL string `json:"mediumURL,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557334147632
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: Screen Shot 2019-05-08 at 9.46.57 AM.png
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// orig URL
|
||
// Example: string
|
||
OrigURL string `json:"origURL,omitempty"`
|
||
|
||
// priority
|
||
// Example: 0
|
||
Priority float64 `json:"priority,omitempty"`
|
||
|
||
// public URL
|
||
// Example: string
|
||
PublicURL string `json:"publicURL,omitempty"`
|
||
|
||
// secured
|
||
// Example: true
|
||
Secured bool `json:"secured,omitempty"`
|
||
|
||
// thumb URL
|
||
// Example: https://connect-files-p1.s3.amazonaws.com/187ea16f-92cb-44e8-92f9-364efd4a6bff-200x200.png
|
||
ThumbURL string `json:"thumbURL,omitempty"`
|
||
|
||
// type
|
||
// Example: Photo
|
||
Type string `json:"type,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member identifications items0 front photo
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 member identifications items0 front photo based on context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberIdentificationsItems0FrontPhoto
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberMemberGroup transactions response values items0 member member group
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberMemberGroup
|
||
type TransactionsResponseValuesItems0MemberMemberGroup struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1551488486906
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// default group
|
||
// Example: true
|
||
DefaultGroup bool `json:"defaultGroup,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// discount
|
||
// Example: 0
|
||
Discount float64 `json:"discount,omitempty"`
|
||
|
||
// discount type
|
||
// Example: Percentage
|
||
DiscountType string `json:"discountType,omitempty"`
|
||
|
||
// enable promotion
|
||
// Example: false
|
||
EnablePromotion bool `json:"enablePromotion,omitempty"`
|
||
|
||
// id
|
||
// Example: 5c7e8c7b722ed607e61edb25
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// member count
|
||
// Example: 144
|
||
MemberCount float64 `json:"memberCount,omitempty"`
|
||
|
||
// member count email opt in
|
||
// Example: 114
|
||
MemberCountEmailOptIn float64 `json:"memberCountEmailOptIn,omitempty"`
|
||
|
||
// member count text opt in
|
||
// Example: 109
|
||
MemberCountTextOptIn float64 `json:"memberCountTextOptIn,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557333838706
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: Delivery
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// promotion Id
|
||
// Example: 5cc6938d18c8a8081ff8dd0e
|
||
PromotionID string `json:"promotionId,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c7e8c7b722ed607e61edb1d
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member member group
|
||
func (m *TransactionsResponseValuesItems0MemberMemberGroup) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 member member group based on context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberMemberGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberMemberGroup) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberMemberGroup) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberMemberGroup
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberRecommendationsItems0 transactions response values items0 member recommendations items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberRecommendationsItems0
|
||
type TransactionsResponseValuesItems0MemberRecommendationsItems0 struct {
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557334153113
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd30889e0faca07d2824d82
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557334153113
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// verify method
|
||
// Example: MANUAL
|
||
VerifyMethod string `json:"verifyMethod,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member recommendations items0
|
||
func (m *TransactionsResponseValuesItems0MemberRecommendationsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 member recommendations items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberRecommendationsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberRecommendationsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberRecommendationsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberRecommendationsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0MemberSignature transactions response values items0 member signature
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0MemberSignature
|
||
type TransactionsResponseValuesItems0MemberSignature struct {
|
||
|
||
// active
|
||
// Example: true
|
||
Active bool `json:"active,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1556066699832
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cbfb18ba71c2f082fa6661a
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// key
|
||
// Example: 6efbf882-f4d3-4acb-8723-6da45ef87edf.png
|
||
Key string `json:"key,omitempty"`
|
||
|
||
// large URL
|
||
// Example: https://connect-files-public.s3.amazonaws.com/6efbf882-f4d3-4acb-8723-6da45ef87edf-800x800.png
|
||
LargeURL string `json:"largeURL,omitempty"`
|
||
|
||
// medium URL
|
||
// Example: https://connect-files-public.s3.amazonaws.com/6efbf882-f4d3-4acb-8723-6da45ef87edf-500x500.png
|
||
MediumURL string `json:"mediumURL,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556066699832
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: file
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// priority
|
||
// Example: 0
|
||
Priority float64 `json:"priority,omitempty"`
|
||
|
||
// public URL
|
||
// Example: https://connect-files-public.s3.amazonaws.com/6efbf882-f4d3-4acb-8723-6da45ef87edf.png
|
||
PublicURL string `json:"publicURL,omitempty"`
|
||
|
||
// secured
|
||
// Example: false
|
||
Secured bool `json:"secured,omitempty"`
|
||
|
||
// thumb URL
|
||
// Example: https://connect-files-public.s3.amazonaws.com/6efbf882-f4d3-4acb-8723-6da45ef87edf-200x200.png
|
||
ThumbURL string `json:"thumbURL,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 member signature
|
||
func (m *TransactionsResponseValuesItems0MemberSignature) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 member signature based on context it is used
|
||
func (m *TransactionsResponseValuesItems0MemberSignature) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberSignature) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0MemberSignature) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0MemberSignature
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0Note transactions response values items0 note
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0Note
|
||
type TransactionsResponseValuesItems0Note struct {
|
||
|
||
// created
|
||
// Example: 1557363743758
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// enable on fleet
|
||
// Example: false
|
||
EnableOnFleet bool `json:"enableOnFleet,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd37c1f819d9e27ca3ed854
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// message
|
||
// Example: Duplicate Transaction
|
||
Message string `json:"message,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1557363743758
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// writer Id
|
||
// Example: string
|
||
WriterID string `json:"writerId,omitempty"`
|
||
|
||
// writer name
|
||
// Example: string
|
||
WriterName string `json:"writerName,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 note
|
||
func (m *TransactionsResponseValuesItems0Note) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 note based on context it is used
|
||
func (m *TransactionsResponseValuesItems0Note) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Note) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Note) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0Note
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0PaymentCardPaymentsItems0 transactions response values items0 payment card payments items0
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0PaymentCardPaymentsItems0
|
||
type TransactionsResponseValuesItems0PaymentCardPaymentsItems0 struct {
|
||
|
||
// amount
|
||
// Example: 130.92
|
||
Amount float64 `json:"amount,omitempty"`
|
||
|
||
// balance
|
||
// Example: 19.08
|
||
Balance float64 `json:"balance,omitempty"`
|
||
|
||
// created
|
||
// Example: 0
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 000ae300b23000dd6000fbc5
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 0
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// payment card number
|
||
// Example: 6058690074011822
|
||
PaymentCardNumber string `json:"paymentCardNumber,omitempty"`
|
||
|
||
// processed time
|
||
// Example: 1556311867003
|
||
ProcessedTime int64 `json:"processedTime,omitempty"`
|
||
|
||
// status
|
||
// Example: Paid
|
||
Status string `json:"status,omitempty"`
|
||
|
||
// status message
|
||
// Example: string
|
||
StatusMessage string `json:"statusMessage,omitempty"`
|
||
|
||
// type
|
||
// Example: Linx
|
||
Type string `json:"type,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 payment card payments items0
|
||
func (m *TransactionsResponseValuesItems0PaymentCardPaymentsItems0) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 payment card payments items0 based on context it is used
|
||
func (m *TransactionsResponseValuesItems0PaymentCardPaymentsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0PaymentCardPaymentsItems0) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0PaymentCardPaymentsItems0) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0PaymentCardPaymentsItems0
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0Seller transactions response values items0 seller
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0Seller
|
||
type TransactionsResponseValuesItems0Seller struct {
|
||
|
||
// address
|
||
Address *TransactionsResponseValuesItems0SellerAddress `json:"address,omitempty"`
|
||
|
||
// assigned
|
||
// Example: true
|
||
Assigned bool `json:"assigned,omitempty"`
|
||
|
||
// assigned employee
|
||
// Example: string
|
||
AssignedEmployee string `json:"assignedEmployee,omitempty"`
|
||
|
||
// assigned terminal Id
|
||
// Example: 5c82b3944442190831bca731
|
||
AssignedTerminalID string `json:"assignedTerminalId,omitempty"`
|
||
|
||
// can apply custom discount
|
||
// Example: false
|
||
CanApplyCustomDiscount bool `json:"canApplyCustomDiscount,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// create onfleet task
|
||
// Example: false
|
||
CreateOnfleetTask bool `json:"createOnfleetTask,omitempty"`
|
||
|
||
// create tookan task
|
||
// Example: false
|
||
CreateTookanTask bool `json:"createTookanTask,omitempty"`
|
||
|
||
// created
|
||
// Example: 1555698469092
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// delivery date
|
||
// Example: 0
|
||
DeliveryDate float64 `json:"deliveryDate,omitempty"`
|
||
|
||
// disabled
|
||
// Example: false
|
||
Disabled bool `json:"disabled,omitempty"`
|
||
|
||
// dl expiration date
|
||
// Example: 2019-06-11
|
||
DlExpirationDate string `json:"dlExpirationDate,omitempty"`
|
||
|
||
// drivers license
|
||
// Example: Y3467802
|
||
DriversLicense string `json:"driversLicense,omitempty"`
|
||
|
||
// email
|
||
// Example: ruben.luna7496@gmail.com
|
||
Email string `json:"email,omitempty"`
|
||
|
||
// error refund time
|
||
// Example: 0
|
||
ErrorRefundTime int64 `json:"errorRefundTime,omitempty"`
|
||
|
||
// error time
|
||
// Example: 0
|
||
ErrorTime int64 `json:"errorTime,omitempty"`
|
||
|
||
// first name
|
||
// Example: Ruben
|
||
FirstName string `json:"firstName,omitempty"`
|
||
|
||
// fulfilling fulfillment
|
||
// Example: false
|
||
FulfillingFulfillment bool `json:"fulfillingFulfillment,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cba1325e7198807f4ba2a01
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// insurance company name
|
||
// Example: Progressive
|
||
InsuranceCompanyName string `json:"insuranceCompanyName,omitempty"`
|
||
|
||
// insurance expire date
|
||
// Example: 0
|
||
InsuranceExpireDate float64 `json:"insuranceExpireDate,omitempty"`
|
||
|
||
// last name
|
||
// Example: Luna
|
||
LastName string `json:"lastName,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1556502543146
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// on fleet task Id
|
||
// Example: string
|
||
OnFleetTaskID string `json:"onFleetTaskId,omitempty"`
|
||
|
||
// on fleet task status
|
||
// Example: string
|
||
OnFleetTaskStatus string `json:"onFleetTaskStatus,omitempty"`
|
||
|
||
// order tags
|
||
// Example: ["Delivery"]
|
||
OrderTags []string `json:"orderTags"`
|
||
|
||
// packed by
|
||
// Example: 5cb7b8a94cd84907f646e851
|
||
PackedBy string `json:"packedBy,omitempty"`
|
||
|
||
// packed date
|
||
// Example: 1556055414943
|
||
PackedDate float64 `json:"packedDate,omitempty"`
|
||
|
||
// password
|
||
// Example: 1Rheg0qew4Y/sOmTJIn7O9RwhFjCQV4i
|
||
Password string `json:"password,omitempty"`
|
||
|
||
// paying with payment card
|
||
// Example: false
|
||
PayingWithPaymentCard bool `json:"payingWithPaymentCard,omitempty"`
|
||
|
||
// phone number
|
||
// Example: (951) 392-6663
|
||
PhoneNumber string `json:"phoneNumber,omitempty"`
|
||
|
||
// pick up date
|
||
// Example: 1556055414943
|
||
PickUpDate float64 `json:"pickUpDate,omitempty"`
|
||
|
||
// pin
|
||
// Example: 8035
|
||
Pin string `json:"pin,omitempty"`
|
||
|
||
// prepared by
|
||
// Example: 5cb7b8a94cd84907f646e851
|
||
PreparedBy string `json:"preparedBy,omitempty"`
|
||
|
||
// prepared date
|
||
// Example: 1556055414943
|
||
PreparedDate float64 `json:"preparedDate,omitempty"`
|
||
|
||
// preparing fulfillment
|
||
// Example: false
|
||
PreparingFulfillment bool `json:"preparingFulfillment,omitempty"`
|
||
|
||
// qb desktop journal entry ref
|
||
// Example: string
|
||
QbDesktopJournalEntryRef string `json:"qbDesktopJournalEntryRef,omitempty"`
|
||
|
||
// qb desktop refund receipt
|
||
// Example: string
|
||
QbDesktopRefundReceipt string `json:"qbDesktopRefundReceipt,omitempty"`
|
||
|
||
// qb desktop sales ref
|
||
// Example: string
|
||
QbDesktopSalesRef string `json:"qbDesktopSalesRef,omitempty"`
|
||
|
||
// qb errored
|
||
// Example: false
|
||
QbErrored bool `json:"qbErrored,omitempty"`
|
||
|
||
// qb journal entry ref
|
||
// Example: string
|
||
QbJournalEntryRef string `json:"qbJournalEntryRef,omitempty"`
|
||
|
||
// qb refund errored
|
||
// Example: false
|
||
QbRefundErrored bool `json:"qbRefundErrored,omitempty"`
|
||
|
||
// qb refund receipt
|
||
// Example: string
|
||
QbRefundReceipt string `json:"qbRefundReceipt,omitempty"`
|
||
|
||
// qb sales receipt ref
|
||
// Example: string
|
||
QbSalesReceiptRef string `json:"qbSalesReceiptRef,omitempty"`
|
||
|
||
// recent location
|
||
RecentLocation *TransactionsResponseValuesItems0SellerRecentLocation `json:"recentLocation,omitempty"`
|
||
|
||
// refund payment options
|
||
// Example: ["Cash","Cash","StoreCredit"]
|
||
RefundPaymentOptions []string `json:"refundPaymentOptions"`
|
||
|
||
// refund version
|
||
// Example: string
|
||
RefundVersion string `json:"refundVersion,omitempty"`
|
||
|
||
// registration expire date
|
||
// Example: 0
|
||
RegistrationExpireDate float64 `json:"registrationExpireDate,omitempty"`
|
||
|
||
// role Id
|
||
// Example: 5c7e8c7b722ed607e61edb13
|
||
RoleID string `json:"roleId,omitempty"`
|
||
|
||
// shops
|
||
// Example: ["5c9fe425e0faca07db94b970"]
|
||
Shops []string `json:"shops"`
|
||
|
||
// short Id
|
||
// Example: string
|
||
ShortID string `json:"shortId,omitempty"`
|
||
|
||
// state
|
||
// Example: 0
|
||
State float64 `json:"state,omitempty"`
|
||
|
||
// time card Id
|
||
// Example: 5cd2d7b80c9ccc081b8999ca
|
||
TimeCardID string `json:"timeCardId,omitempty"`
|
||
|
||
// tookan task Id
|
||
// Example: string
|
||
TookanTaskID string `json:"tookanTaskId,omitempty"`
|
||
|
||
// transaction refund status
|
||
// Example: Partial_Refund
|
||
TransactionRefundStatus string `json:"transactionRefundStatus,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// vehicle license plate
|
||
// Example: string
|
||
VehicleLicensePlate string `json:"vehicleLicensePlate,omitempty"`
|
||
|
||
// vehicle make
|
||
// Example: Mercedes
|
||
VehicleMake string `json:"vehicleMake,omitempty"`
|
||
|
||
// vehicle model
|
||
// Example: string
|
||
VehicleModel string `json:"vehicleModel,omitempty"`
|
||
|
||
// vehicle pin
|
||
// Example: string
|
||
VehiclePin string `json:"vehiclePin,omitempty"`
|
||
|
||
// vin no
|
||
// Example: string
|
||
VinNo string `json:"vinNo,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 seller
|
||
func (m *TransactionsResponseValuesItems0Seller) Validate(formats strfmt.Registry) error {
|
||
var res []error
|
||
|
||
if err := m.validateAddress(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if err := m.validateRecentLocation(formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Seller) 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("seller" + "." + "address")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Seller) validateRecentLocation(formats strfmt.Registry) error {
|
||
if swag.IsZero(m.RecentLocation) { // not required
|
||
return nil
|
||
}
|
||
|
||
if m.RecentLocation != nil {
|
||
if err := m.RecentLocation.Validate(formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("seller" + "." + "recentLocation")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validate this transactions response values items0 seller based on the context it is used
|
||
func (m *TransactionsResponseValuesItems0Seller) 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.contextValidateRecentLocation(ctx, formats); err != nil {
|
||
res = append(res, err)
|
||
}
|
||
|
||
if len(res) > 0 {
|
||
return errors.CompositeValidationError(res...)
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Seller) 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("seller" + "." + "address")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
func (m *TransactionsResponseValuesItems0Seller) contextValidateRecentLocation(ctx context.Context, formats strfmt.Registry) error {
|
||
|
||
if m.RecentLocation != nil {
|
||
if err := m.RecentLocation.ContextValidate(ctx, formats); err != nil {
|
||
if ve, ok := err.(*errors.Validation); ok {
|
||
return ve.ValidateName("seller" + "." + "recentLocation")
|
||
}
|
||
return err
|
||
}
|
||
}
|
||
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Seller) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0Seller) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0Seller
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0SellerAddress transactions response values items0 seller address
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0SellerAddress
|
||
type TransactionsResponseValuesItems0SellerAddress struct {
|
||
|
||
// address
|
||
Address string `json:"address,omitempty"`
|
||
|
||
// address line1
|
||
AddressLine1 string `json:"addressLine1,omitempty"`
|
||
|
||
// city
|
||
City string `json:"city,omitempty"`
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// country
|
||
// Example: US
|
||
Country string `json:"country,omitempty"`
|
||
|
||
// created
|
||
// Example: 1555699043038
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cba1563e7198807f4ba3ce2
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// modified
|
||
// Example: 1555699043038
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// state
|
||
State string `json:"state,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
|
||
// zip code
|
||
ZipCode string `json:"zipCode,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 seller address
|
||
func (m *TransactionsResponseValuesItems0SellerAddress) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 seller address based on context it is used
|
||
func (m *TransactionsResponseValuesItems0SellerAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0SellerAddress) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0SellerAddress) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0SellerAddress
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|
||
|
||
// TransactionsResponseValuesItems0SellerRecentLocation transactions response values items0 seller recent location
|
||
//
|
||
// swagger:model TransactionsResponseValuesItems0SellerRecentLocation
|
||
type TransactionsResponseValuesItems0SellerRecentLocation struct {
|
||
|
||
// company Id
|
||
// Example: 5c7e8c7b722ed607e61edb06
|
||
CompanyID string `json:"companyId,omitempty"`
|
||
|
||
// created
|
||
// Example: 1557337109403
|
||
Created int64 `json:"created,omitempty"`
|
||
|
||
// deleted
|
||
// Example: false
|
||
Deleted bool `json:"deleted,omitempty"`
|
||
|
||
// device Id
|
||
// Example: A2D5B987-95F4-479F-83F0-A752A5214EC8
|
||
DeviceID string `json:"deviceId,omitempty"`
|
||
|
||
// dirty
|
||
// Example: false
|
||
Dirty bool `json:"dirty,omitempty"`
|
||
|
||
// employee Id
|
||
// Example: 5cba1632c3cb8e0812d4c12f
|
||
EmployeeID string `json:"employeeId,omitempty"`
|
||
|
||
// id
|
||
// Example: 5cd3141535f310083897685c
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// loc
|
||
// Example: [-118.54924441326274,34.38270112968458]
|
||
Loc []float64 `json:"loc"`
|
||
|
||
// modified
|
||
// Example: 1557337109403
|
||
Modified int64 `json:"modified,omitempty"`
|
||
|
||
// name
|
||
// Example: Pineapple’s iPhone
|
||
Name string `json:"name,omitempty"`
|
||
|
||
// shop Id
|
||
// Example: 5c9fe425e0faca07db94b970
|
||
ShopID string `json:"shopId,omitempty"`
|
||
|
||
// terminal Id
|
||
// Example: 5c9fe47ae8df3f080d33aa09
|
||
TerminalID string `json:"terminalId,omitempty"`
|
||
|
||
// time card Id
|
||
// Example: 5cd2d7b80c9ccc081b8999ca
|
||
TimeCardID string `json:"timeCardId,omitempty"`
|
||
|
||
// updated
|
||
// Example: false
|
||
Updated bool `json:"updated,omitempty"`
|
||
}
|
||
|
||
// Validate validates this transactions response values items0 seller recent location
|
||
func (m *TransactionsResponseValuesItems0SellerRecentLocation) Validate(formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// ContextValidate validates this transactions response values items0 seller recent location based on context it is used
|
||
func (m *TransactionsResponseValuesItems0SellerRecentLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||
return nil
|
||
}
|
||
|
||
// MarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0SellerRecentLocation) MarshalBinary() ([]byte, error) {
|
||
if m == nil {
|
||
return nil, nil
|
||
}
|
||
return swag.WriteJSON(m)
|
||
}
|
||
|
||
// UnmarshalBinary interface implementation
|
||
func (m *TransactionsResponseValuesItems0SellerRecentLocation) UnmarshalBinary(b []byte) error {
|
||
var res TransactionsResponseValuesItems0SellerRecentLocation
|
||
if err := swag.ReadJSON(b, &res); err != nil {
|
||
return err
|
||
}
|
||
*m = res
|
||
return nil
|
||
}
|