lib/api/blaze/blaze_models/transactions_response.go

5641 lines
145 KiB
Go
Raw Normal View History

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