lib/api/blaze/blaze_models/transaction_by_id_response.go

3466 lines
86 KiB
Go
Raw Permalink 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"
)
// TransactionByIDResponse transaction by Id response
//
// swagger:model TransactionByIdResponse
type TransactionByIDResponse 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"`
// address update
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
AddressUpdate bool `json:"addressUpdate,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 Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b406f
2021-01-08 17:40:28 +00:00
AssignedEmployeeID string `json:"assignedEmployeeId,omitempty"`
// cart
Cart *TransactionByIDResponseCart `json:"cart,omitempty"`
// checkin time
2021-02-09 16:56:57 +00:00
// Example: 1585432659695
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"`
// complete after
2021-02-09 16:56:57 +00:00
// Example: 1585441800000
2021-01-08 17:40:28 +00:00
CompleteAfter int64 `json:"completeAfter,omitempty"`
// completed time
2021-02-09 16:56:57 +00:00
// Example: 1585440892887
2021-01-08 17:40:28 +00:00
CompletedTime int64 `json:"completedTime,omitempty"`
// create onfleet task
2021-02-09 16:56:57 +00:00
// Example: true
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: 1585432659695
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: 5d1109b9874b44081f07df8f
2021-01-08 17:40:28 +00:00
CreatedByID string `json:"createdById,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 *TransactionByIDResponseDeliveryAddress `json:"deliveryAddress,omitempty"`
// delivery date
2021-02-09 16:56:57 +00:00
// Example: 1585443600000
2021-01-08 17:40:28 +00:00
DeliveryDate int64 `json:"deliveryDate,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: 1585440891404
2021-01-08 17:40:28 +00:00
EndRouteDate int64 `json:"endRouteDate,omitempty"`
// end time
2021-02-09 16:56:57 +00:00
// Example: 1585440891404
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"`
// 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"`
// 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: 5e7fc85343383208d7fbac3e
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// loc
2021-02-09 16:56:57 +00:00
// Example: [-118.05688211705355,33.80187413192708]
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 Id
2021-02-09 16:56:57 +00:00
// Example: 5e7fc80143383208d7fba673
2021-01-08 17:40:28 +00:00
MemberID string `json:"memberId,omitempty"`
// member signature
MemberSignature *TransactionByIDResponseMemberSignature `json:"memberSignature,omitempty"`
// memo
Memo string `json:"memo,omitempty"`
// metrc delivery submit status
2021-02-09 16:56:57 +00:00
// Example: None
2021-01-08 17:40:28 +00:00
MetrcDeliverySubmitStatus string `json:"metrcDeliverySubmitStatus,omitempty"`
// metrc delivery submit time
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MetrcDeliverySubmitTime int64 `json:"metrcDeliverySubmitTime,omitempty"`
// metrc Id
2021-02-09 16:56:57 +00:00
// Example: 17281252
2021-01-08 17:40:28 +00:00
MetrcID float64 `json:"metrcId,omitempty"`
// metrc sale time
2021-02-09 16:56:57 +00:00
// Example: 2020-03-29T00:14:52.887Z
2021-01-08 17:40:28 +00:00
MetrcSaleTime string `json:"metrcSaleTime,omitempty"`
// metrc submission complete time
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MetrcSubmissionCompleteTime int64 `json:"metrcSubmissionCompleteTime,omitempty"`
// metrc submission delete time
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MetrcSubmissionDeleteTime int64 `json:"metrcSubmissionDeleteTime,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: 1585440893789
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// on fleet error
OnFleetError string `json:"onFleetError,omitempty"`
// on fleet task Id
2021-02-09 16:56:57 +00:00
// Example: o7XchVifXLXF40qHK1LnVijP
2021-01-08 17:40:28 +00:00
OnFleetTaskID string `json:"onFleetTaskId,omitempty"`
// order tags
2021-02-09 16:56:57 +00:00
// Example: ["REC Verified","Delivery"]
2021-01-08 17:40:28 +00:00
OrderTags []string `json:"orderTags"`
// override inventory Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb41
2021-01-08 17:40:28 +00:00
OverrideInventoryID string `json:"overrideInventoryId,omitempty"`
// packed by
2021-02-09 16:56:57 +00:00
// Example: 5d9384eca660c70822e3b1d0
2021-01-08 17:40:28 +00:00
PackedBy string `json:"packedBy,omitempty"`
// packed date
2021-02-09 16:56:57 +00:00
// Example: 1585432972448
2021-01-08 17:40:28 +00:00
PackedDate float64 `json:"packedDate,omitempty"`
// paid
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Paid bool `json:"paid,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"`
// payment edited time
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
PaymentEditedTime int64 `json:"paymentEditedTime,omitempty"`
// points earned
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
PointsEarned float64 `json:"pointsEarned,omitempty"`
// prepared by
2021-02-09 16:56:57 +00:00
// Example: 5d1109b9874b44081f07df8f
2021-01-08 17:40:28 +00:00
PreparedBy string `json:"preparedBy,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"`
// priority
2021-02-09 16:56:57 +00:00
// Example: 14309
2021-01-08 17:40:28 +00:00
Priority float64 `json:"priority,omitempty"`
// processed time
2021-02-09 16:56:57 +00:00
// Example: 1585440892887
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"`
// refund payment options
2021-02-09 16:56:57 +00:00
// Example: ["Credit","StoreCredit"]
2021-01-08 17:40:28 +00:00
RefundPaymentOptions []string `json:"refundPaymentOptions"`
// 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 Id
2021-02-09 16:56:57 +00:00
// Example: 5d1655750f9c6f07f744a78a
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: 5d291e02bd20bf0800b3e816
2021-01-08 17:40:28 +00:00
SellerTerminalID string `json:"sellerTerminalId,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"`
// short Id
2021-02-09 16:56:57 +00:00
// Example: 457d176d
2021-01-08 17:40:28 +00:00
ShortID string `json:"shortId,omitempty"`
// start route date
2021-02-09 16:56:57 +00:00
// Example: 1585432659695
2021-01-08 17:40:28 +00:00
StartRouteDate float64 `json:"startRouteDate,omitempty"`
// start time
2021-02-09 16:56:57 +00:00
// Example: 1585440863815
2021-01-08 17:40:28 +00:00
StartTime int64 `json:"startTime,omitempty"`
// state
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
State float64 `json:"state,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 submit status
2021-02-09 16:56:57 +00:00
// Example: Completed
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: 14309
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"`
// transaction refund status
2021-02-09 16:56:57 +00:00
// Example: None
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"`
}
// Validate validates this transaction by Id response
func (m *TransactionByIDResponse) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCart(formats); err != nil {
res = append(res, err)
}
if err := m.validateDeliveryAddress(formats); err != nil {
res = append(res, err)
}
if err := m.validateMemberSignature(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *TransactionByIDResponse) 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 *TransactionByIDResponse) 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 *TransactionByIDResponse) 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
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this transaction by Id response based on the context it is used
func (m *TransactionByIDResponse) 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.contextValidateDeliveryAddress(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateMemberSignature(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *TransactionByIDResponse) 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 *TransactionByIDResponse) 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 *TransactionByIDResponse) 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
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponse) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCart transaction by ID response cart
//
// swagger:model TransactionByIDResponseCart
type TransactionByIDResponseCart 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"`
// after tax discount notes
AfterTaxDiscountNotes string `json:"afterTaxDiscountNotes,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: 5.4
2021-01-08 17:40:28 +00:00
CalcCartDiscount float64 `json:"calcCartDiscount,omitempty"`
// cart discount notes
CartDiscountNotes string `json:"cartDiscountNotes,omitempty"`
// cash received
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
CashReceived float64 `json:"cashReceived,omitempty"`
// change due
2021-02-09 16:56:57 +00:00
// Example: 0
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: 1585432659695
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"`
// discount
2021-02-09 16:56:57 +00:00
// Example: 5.4
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"`
// 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: 5e7fc85343383208d7fbac3f
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// items
Items []*TransactionByIDResponseCartItemsItems0 `json:"items"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891476
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// payment option
2021-02-09 16:56:57 +00:00
// Example: Credit
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
PromoCode string `json:"promoCode,omitempty"`
// promotion req logs
PromotionReqLogs []*TransactionByIDResponseCartPromotionReqLogsItems0 `json:"promotionReqLogs"`
// promotion reqs
PromotionReqs []*TransactionByIDResponseCartPromotionReqsItems0 `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 []string `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: 334
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: 334
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 *TransactionByIDResponseCartTaxResult `json:"taxResult,omitempty"`
// tax round off type
2021-02-09 16:56:57 +00:00
// Example: ONE_CENT
2021-01-08 17:40:28 +00:00
TaxRoundOffType string `json:"taxRoundOffType,omitempty"`
// tax table
TaxTable *TransactionByIDResponseCartTaxTable `json:"taxTable,omitempty"`
// tip amount
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TipAmount float64 `json:"tipAmount,omitempty"`
// total
2021-02-09 16:56:57 +00:00
// Example: 430
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: 96
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 transaction by ID response cart
func (m *TransactionByIDResponseCart) 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.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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 transaction by ID response cart based on the context it is used
func (m *TransactionByIDResponseCart) 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.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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) 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 *TransactionByIDResponseCart) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCart) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCart
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0 transaction by ID response cart items items0
//
// swagger:model TransactionByIDResponseCartItemsItems0
type TransactionByIDResponseCartItemsItems0 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"`
// 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: 4.0522
2021-01-08 17:40:28 +00:00
CalcTax float64 `json:"calcTax,omitempty"`
// cogs
2021-02-09 16:56:57 +00:00
// Example: 7
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: 20.99
2021-01-08 17:40:28 +00:00
Cost float64 `json:"cost,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585432681221
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 notes
DiscountNotes string `json:"discountNotes,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"`
// excise tax
2021-02-09 16:56:57 +00:00
// Example: 0.3686
2021-01-08 17:40:28 +00:00
ExciseTax float64 `json:"exciseTax,omitempty"`
// final price
2021-02-09 16:56:57 +00:00
// Example: 20.99
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: 5e7fc86913d34108c8fc6e6d
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: 1585440891572
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: 2022a978-4995-415d-9d8f-2cbf22766028
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"`
// 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 Id
2021-02-09 16:56:57 +00:00
// Example: 5de977fafe67a6082e6f2b26
2021-01-08 17:40:28 +00:00
ProductID string `json:"productId,omitempty"`
// promotion reqs
PromotionReqs []float64 `json:"promotionReqs"`
// quantity
2021-02-09 16:56:57 +00:00
// Example: 10
2021-01-08 17:40:28 +00:00
Quantity float64 `json:"quantity,omitempty"`
// quantity logs
QuantityLogs []*TransactionByIDResponseCartItemsItems0QuantityLogsItems0 `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 *TransactionByIDResponseCartItemsItems0TaxResult `json:"taxResult,omitempty"`
// tax table
TaxTable *TransactionByIDResponseCartItemsItems0TaxTable `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: 0
2021-01-08 17:40:28 +00:00
TotalRefundQty float64 `json:"totalRefundQty,omitempty"`
// unit price
2021-02-09 16:56:57 +00:00
// Example: 20.99
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 transaction by ID response cart items items0
func (m *TransactionByIDResponseCartItemsItems0) Validate(formats strfmt.Registry) error {
var res []error
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 *TransactionByIDResponseCartItemsItems0) validateQuantityLogs(formats strfmt.Registry) error {
if swag.IsZero(m.QuantityLogs) { // not required
return nil
}
for i := 0; i < len(m.QuantityLogs); i++ {
if swag.IsZero(m.QuantityLogs[i]) { // not required
continue
}
if m.QuantityLogs[i] != nil {
if err := m.QuantityLogs[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("quantityLogs" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
func (m *TransactionByIDResponseCartItemsItems0) 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 *TransactionByIDResponseCartItemsItems0) 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
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this transaction by ID response cart items items0 based on the context it is used
func (m *TransactionByIDResponseCartItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
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 *TransactionByIDResponseCartItemsItems0) contextValidateQuantityLogs(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.QuantityLogs); i++ {
if m.QuantityLogs[i] != nil {
if err := m.QuantityLogs[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("quantityLogs" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
func (m *TransactionByIDResponseCartItemsItems0) contextValidateTaxResult(ctx context.Context, formats strfmt.Registry) error {
if m.TaxResult != nil {
if err := m.TaxResult.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("taxResult")
}
return err
}
}
return nil
}
func (m *TransactionByIDResponseCartItemsItems0) contextValidateTaxTable(ctx context.Context, formats strfmt.Registry) error {
if m.TaxTable != nil {
if err := m.TaxTable.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("taxTable")
}
return err
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0QuantityLogsItems0 transaction by ID response cart items items0 quantity logs items0
//
// swagger:model TransactionByIDResponseCartItemsItems0QuantityLogsItems0
type TransactionByIDResponseCartItemsItems0QuantityLogsItems0 struct {
// batch Id
2021-02-09 16:56:57 +00:00
// Example: 5cacc1bb6218d174d3f17b31
2021-01-08 17:40:28 +00:00
BatchID string `json:"batchId,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 1a7002e4-ac24-43a3-a84e-2c8af39aaa2a_5cabd4ba6218d148395b4067_5cacc1bb6218d174d3f17b31
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// inventory Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b4067
2021-01-08 17:40:28 +00:00
InventoryID string `json:"inventoryId,omitempty"`
// quantity
2021-02-09 16:56:57 +00:00
// Example: 10
2021-01-08 17:40:28 +00:00
Quantity float64 `json:"quantity,omitempty"`
}
// Validate validates this transaction by ID response cart items items0 quantity logs items0
func (m *TransactionByIDResponseCartItemsItems0QuantityLogsItems0) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart items items0 quantity logs items0 based on context it is used
func (m *TransactionByIDResponseCartItemsItems0QuantityLogsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0QuantityLogsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0QuantityLogsItems0) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0QuantityLogsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxResult transaction by ID response cart items items0 tax result
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxResult
type TransactionByIDResponseCartItemsItems0TaxResult struct {
// created
2021-02-09 16:56:57 +00:00
// Example: 1554826473345
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// cultivation tax result
CultivationTaxResult *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult `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: 5cacc4e96218d174d3f17c3a
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1554826473345
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: 96
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: 96
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: 0
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
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: 0
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: 0
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 transaction by ID response cart items items0 tax result
func (m *TransactionByIDResponseCartItemsItems0TaxResult) 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 *TransactionByIDResponseCartItemsItems0TaxResult) 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 transaction by ID response cart items items0 tax result based on the context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxResult) 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 *TransactionByIDResponseCartItemsItems0TaxResult) 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 *TransactionByIDResponseCartItemsItems0TaxResult) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxResult) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxResult
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult transaction by ID response cart items items0 tax result cultivation tax result
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult
type TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult 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 transaction by ID response cart items items0 tax result cultivation tax result
func (m *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart items items0 tax result cultivation tax result based on context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxTable transaction by ID response cart items items0 tax table
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxTable
type TransactionByIDResponseCartItemsItems0TaxTable 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 *TransactionByIDResponseCartItemsItems0TaxTableCityTax `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 *TransactionByIDResponseCartItemsItems0TaxTableCountyTax `json:"countyTax,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
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 *TransactionByIDResponseCartItemsItems0TaxTableFederalTax `json:"federalTax,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189e1
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
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: 5c7e8c7b722ed607e61edb1d
2021-01-08 17:40:28 +00:00
ShopID string `json:"shopId,omitempty"`
// state tax
StateTax *TransactionByIDResponseCartItemsItems0TaxTableStateTax `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 transaction by ID response cart items items0 tax table
func (m *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 transaction by ID response cart items items0 tax table based on the context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) 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 *TransactionByIDResponseCartItemsItems0TaxTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTable) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxTableCityTax transaction by ID response cart items items0 tax table city tax
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxTableCityTax
type TransactionByIDResponseCartItemsItems0TaxTableCityTax 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: false
2021-01-08 17:40:28 +00:00
Compound bool `json:"compound,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: City
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189e2
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// 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 transaction by ID response cart items items0 tax table city tax
func (m *TransactionByIDResponseCartItemsItems0TaxTableCityTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart items items0 tax table city tax based on context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxTableCityTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableCityTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableCityTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxTableCityTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxTableCountyTax transaction by ID response cart items items0 tax table county tax
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxTableCountyTax
type TransactionByIDResponseCartItemsItems0TaxTableCountyTax 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: false
2021-01-08 17:40:28 +00:00
Compound bool `json:"compound,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: County
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189e3
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// 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: 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 transaction by ID response cart items items0 tax table county tax
func (m *TransactionByIDResponseCartItemsItems0TaxTableCountyTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart items items0 tax table county tax based on context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxTableCountyTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableCountyTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableCountyTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxTableCountyTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxTableFederalTax transaction by ID response cart items items0 tax table federal tax
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxTableFederalTax
type TransactionByIDResponseCartItemsItems0TaxTableFederalTax 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: 1585440891598
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: Federal
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189e5
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// 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 transaction by ID response cart items items0 tax table federal tax
func (m *TransactionByIDResponseCartItemsItems0TaxTableFederalTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart items items0 tax table federal tax based on context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxTableFederalTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableFederalTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableFederalTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxTableFederalTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartItemsItems0TaxTableStateTax transaction by ID response cart items items0 tax table state tax
//
// swagger:model TransactionByIDResponseCartItemsItems0TaxTableStateTax
type TransactionByIDResponseCartItemsItems0TaxTableStateTax 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: false
2021-01-08 17:40:28 +00:00
Compound bool `json:"compound,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: State
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189e4
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string `json:"taxOrder,omitempty"`
// tax rate
2021-02-09 16:56:57 +00:00
// Example: 9.5
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 transaction by ID response cart items items0 tax table state tax
func (m *TransactionByIDResponseCartItemsItems0TaxTableStateTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart items items0 tax table state tax based on context it is used
func (m *TransactionByIDResponseCartItemsItems0TaxTableStateTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableStateTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartItemsItems0TaxTableStateTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartItemsItems0TaxTableStateTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartPromotionReqLogsItems0 transaction by ID response cart promotion req logs items0
//
// swagger:model TransactionByIDResponseCartPromotionReqLogsItems0
type TransactionByIDResponseCartPromotionReqLogsItems0 struct {
// amount
2021-02-09 16:56:57 +00:00
// Example: 5.4
2021-01-08 17:40:28 +00:00
Amount float64 `json:"amount,omitempty"`
// assigned
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Assigned bool `json:"assigned,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: 1585440891535
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: 5e7fe87be26bf108c9d189d9
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891535
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// promotion Id
2021-02-09 16:56:57 +00:00
// Example: 5da25bd344ce2e084b72fe31
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"`
// stackable
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Stackable bool `json:"stackable,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 transaction by ID response cart promotion req logs items0
func (m *TransactionByIDResponseCartPromotionReqLogsItems0) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart promotion req logs items0 based on context it is used
func (m *TransactionByIDResponseCartPromotionReqLogsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartPromotionReqLogsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartPromotionReqLogsItems0) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartPromotionReqLogsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartPromotionReqsItems0 transaction by ID response cart promotion reqs items0
//
// swagger:model TransactionByIDResponseCartPromotionReqsItems0
type TransactionByIDResponseCartPromotionReqsItems0 struct {
// assigned
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Assigned bool `json:"assigned,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: 1585440891508
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: 5e7fe87be26bf108c9d189d4
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891508
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// promotion Id
2021-02-09 16:56:57 +00:00
// Example: 5da25bd344ce2e084b72fe31
2021-01-08 17:40:28 +00:00
PromotionID string `json:"promotionId,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 transaction by ID response cart promotion reqs items0
func (m *TransactionByIDResponseCartPromotionReqsItems0) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart promotion reqs items0 based on context it is used
func (m *TransactionByIDResponseCartPromotionReqsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartPromotionReqsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartPromotionReqsItems0) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartPromotionReqsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxResult transaction by ID response cart tax result
//
// swagger:model TransactionByIDResponseCartTaxResult
type TransactionByIDResponseCartTaxResult struct {
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// cultivation tax result
CultivationTaxResult *TransactionByIDResponseCartTaxResultCultivationTaxResult `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: 5e7fe87be26bf108c9d189ec
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891598
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// tax mapping info
TaxMappingInfo *TransactionByIDResponseCartTaxResultTaxMappingInfo `json:"taxMappingInfo,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: 4.05
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: 5.26
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
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: 14.31
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: 5
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 transaction by ID response cart tax result
func (m *TransactionByIDResponseCartTaxResult) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCultivationTaxResult(formats); err != nil {
res = append(res, err)
}
if err := m.validateTaxMappingInfo(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *TransactionByIDResponseCartTaxResult) 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
}
func (m *TransactionByIDResponseCartTaxResult) validateTaxMappingInfo(formats strfmt.Registry) error {
if swag.IsZero(m.TaxMappingInfo) { // not required
return nil
}
if m.TaxMappingInfo != nil {
if err := m.TaxMappingInfo.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxResult" + "." + "taxMappingInfo")
}
return err
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this transaction by ID response cart tax result based on the context it is used
func (m *TransactionByIDResponseCartTaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateCultivationTaxResult(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateTaxMappingInfo(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *TransactionByIDResponseCartTaxResult) 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
}
func (m *TransactionByIDResponseCartTaxResult) contextValidateTaxMappingInfo(ctx context.Context, formats strfmt.Registry) error {
if m.TaxMappingInfo != nil {
if err := m.TaxMappingInfo.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxResult" + "." + "taxMappingInfo")
}
return err
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxResult) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxResult) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxResult
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxResultCultivationTaxResult transaction by ID response cart tax result cultivation tax result
//
// swagger:model TransactionByIDResponseCartTaxResultCultivationTaxResult
type TransactionByIDResponseCartTaxResultCultivationTaxResult 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"`
// plant tax oz
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
PlantTaxOz float64 `json:"plantTaxOz,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"`
// total plant oz
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TotalPlantOz float64 `json:"totalPlantOz,omitempty"`
// total plant tax
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TotalPlantTax float64 `json:"totalPlantTax,omitempty"`
}
// Validate validates this transaction by ID response cart tax result cultivation tax result
func (m *TransactionByIDResponseCartTaxResultCultivationTaxResult) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart tax result cultivation tax result based on context it is used
func (m *TransactionByIDResponseCartTaxResultCultivationTaxResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxResultCultivationTaxResult) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxResultCultivationTaxResult) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxResultCultivationTaxResult
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxResultTaxMappingInfo transaction by ID response cart tax result tax mapping info
//
// swagger:model TransactionByIDResponseCartTaxResultTaxMappingInfo
type TransactionByIDResponseCartTaxResultTaxMappingInfo struct {
// city
2021-02-09 16:56:57 +00:00
// Example: City
2021-01-08 17:40:28 +00:00
City string `json:"City,omitempty"`
// county
2021-02-09 16:56:57 +00:00
// Example: County
2021-01-08 17:40:28 +00:00
County string `json:"County,omitempty"`
// federal
2021-02-09 16:56:57 +00:00
// Example: Federal
2021-01-08 17:40:28 +00:00
Federal string `json:"Federal,omitempty"`
// state
2021-02-09 16:56:57 +00:00
// Example: State
2021-01-08 17:40:28 +00:00
State string `json:"State,omitempty"`
}
// Validate validates this transaction by ID response cart tax result tax mapping info
func (m *TransactionByIDResponseCartTaxResultTaxMappingInfo) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart tax result tax mapping info based on context it is used
func (m *TransactionByIDResponseCartTaxResultTaxMappingInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxResultTaxMappingInfo) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxResultTaxMappingInfo) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxResultTaxMappingInfo
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxTable transaction by ID response cart tax table
//
// swagger:model TransactionByIDResponseCartTaxTable
type TransactionByIDResponseCartTaxTable 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 *TransactionByIDResponseCartTaxTableCityTax `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 *TransactionByIDResponseCartTaxTableCountyTax `json:"countyTax,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
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 *TransactionByIDResponseCartTaxTableFederalTax `json:"federalTax,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189cf
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
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: 5c7e8c7b722ed607e61edb1d
2021-01-08 17:40:28 +00:00
ShopID string `json:"shopId,omitempty"`
// state tax
StateTax *TransactionByIDResponseCartTaxTableStateTax `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 transaction by ID response cart tax table
func (m *TransactionByIDResponseCartTaxTable) 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 *TransactionByIDResponseCartTaxTable) 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 *TransactionByIDResponseCartTaxTable) 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 *TransactionByIDResponseCartTaxTable) 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 *TransactionByIDResponseCartTaxTable) validateStateTax(formats strfmt.Registry) error {
if swag.IsZero(m.StateTax) { // not required
return nil
}
if m.StateTax != nil {
if err := m.StateTax.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxTable" + "." + "stateTax")
}
return err
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this transaction by ID response cart tax table based on the context it is used
func (m *TransactionByIDResponseCartTaxTable) 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 *TransactionByIDResponseCartTaxTable) contextValidateCityTax(ctx context.Context, formats strfmt.Registry) error {
if m.CityTax != nil {
if err := m.CityTax.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxTable" + "." + "cityTax")
}
return err
}
}
return nil
}
func (m *TransactionByIDResponseCartTaxTable) contextValidateCountyTax(ctx context.Context, formats strfmt.Registry) error {
if m.CountyTax != nil {
if err := m.CountyTax.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxTable" + "." + "countyTax")
}
return err
}
}
return nil
}
func (m *TransactionByIDResponseCartTaxTable) contextValidateFederalTax(ctx context.Context, formats strfmt.Registry) error {
if m.FederalTax != nil {
if err := m.FederalTax.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxTable" + "." + "federalTax")
}
return err
}
}
return nil
}
func (m *TransactionByIDResponseCartTaxTable) contextValidateStateTax(ctx context.Context, formats strfmt.Registry) error {
if m.StateTax != nil {
if err := m.StateTax.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("cart" + "." + "taxTable" + "." + "stateTax")
}
return err
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTable) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTable) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxTable
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxTableCityTax transaction by ID response cart tax table city tax
//
// swagger:model TransactionByIDResponseCartTaxTableCityTax
type TransactionByIDResponseCartTaxTableCityTax 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: false
2021-01-08 17:40:28 +00:00
Compound bool `json:"compound,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: City
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189d0
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// 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 transaction by ID response cart tax table city tax
func (m *TransactionByIDResponseCartTaxTableCityTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart tax table city tax based on context it is used
func (m *TransactionByIDResponseCartTaxTableCityTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableCityTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableCityTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxTableCityTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxTableCountyTax transaction by ID response cart tax table county tax
//
// swagger:model TransactionByIDResponseCartTaxTableCountyTax
type TransactionByIDResponseCartTaxTableCountyTax 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: false
2021-01-08 17:40:28 +00:00
Compound bool `json:"compound,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: County
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189d1
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// 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: 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 transaction by ID response cart tax table county tax
func (m *TransactionByIDResponseCartTaxTableCountyTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart tax table county tax based on context it is used
func (m *TransactionByIDResponseCartTaxTableCountyTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableCountyTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableCountyTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxTableCountyTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxTableFederalTax transaction by ID response cart tax table federal tax
//
// swagger:model TransactionByIDResponseCartTaxTableFederalTax
type TransactionByIDResponseCartTaxTableFederalTax 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: 1585440891480
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: Federal
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189d3
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// 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 transaction by ID response cart tax table federal tax
func (m *TransactionByIDResponseCartTaxTableFederalTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart tax table federal tax based on context it is used
func (m *TransactionByIDResponseCartTaxTableFederalTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableFederalTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableFederalTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxTableFederalTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseCartTaxTableStateTax transaction by ID response cart tax table state tax
//
// swagger:model TransactionByIDResponseCartTaxTableStateTax
type TransactionByIDResponseCartTaxTableStateTax 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: false
2021-01-08 17:40:28 +00:00
Compound bool `json:"compound,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
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"`
// display name
2021-02-09 16:56:57 +00:00
// Example: State
2021-01-08 17:40:28 +00:00
DisplayName string `json:"displayName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5e7fe87be26bf108c9d189d2
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585440891480
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,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"`
// tax order
2021-02-09 16:56:57 +00:00
// Example: PostTaxed
2021-01-08 17:40:28 +00:00
TaxOrder string `json:"taxOrder,omitempty"`
// tax rate
2021-02-09 16:56:57 +00:00
// Example: 9.5
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 transaction by ID response cart tax table state tax
func (m *TransactionByIDResponseCartTaxTableStateTax) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response cart tax table state tax based on context it is used
func (m *TransactionByIDResponseCartTaxTableStateTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableStateTax) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseCartTaxTableStateTax) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseCartTaxTableStateTax
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseDeliveryAddress transaction by ID response delivery address
//
// swagger:model TransactionByIDResponseDeliveryAddress
type TransactionByIDResponseDeliveryAddress struct {
// address
2021-02-09 16:56:57 +00:00
// Example: 4331 Green Avenue
2021-01-08 17:40:28 +00:00
Address string `json:"address,omitempty"`
// address line2
AddressLine2 string `json:"addressLine2,omitempty"`
// city
2021-02-09 16:56:57 +00:00
// Example: Los Alamitos
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: 1585432659695
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: 5e7fc85343383208d7fbac40
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1585432659695
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: 90720
2021-01-08 17:40:28 +00:00
ZipCode string `json:"zipCode,omitempty"`
}
// Validate validates this transaction by ID response delivery address
func (m *TransactionByIDResponseDeliveryAddress) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response delivery address based on context it is used
func (m *TransactionByIDResponseDeliveryAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseDeliveryAddress) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseDeliveryAddress) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseDeliveryAddress
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// TransactionByIDResponseMemberSignature transaction by ID response member signature
//
// swagger:model TransactionByIDResponseMemberSignature
type TransactionByIDResponseMemberSignature 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: 1585440877379
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: 5e7fe86dcdabfe08de901539
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// key
2021-02-09 16:56:57 +00:00
// Example: e3ccaa24-63db-410b-b3aa-205259a04f52.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/e3ccaa24-63db-410b-b3aa-205259a04f52-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/e3ccaa24-63db-410b-b3aa-205259a04f52-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: 1585440877379
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/e3ccaa24-63db-410b-b3aa-205259a04f52.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/e3ccaa24-63db-410b-b3aa-205259a04f52-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 transaction by ID response member signature
func (m *TransactionByIDResponseMemberSignature) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction by ID response member signature based on context it is used
func (m *TransactionByIDResponseMemberSignature) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TransactionByIDResponseMemberSignature) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TransactionByIDResponseMemberSignature) UnmarshalBinary(b []byte) error {
var res TransactionByIDResponseMemberSignature
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}