// Code generated by go-swagger; DO NOT EDIT. // All Code Copyright(c) 2018-2021 by Taxnexus, Inc. // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed package blaze_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // TransactionByIDResponse transaction by Id response // // swagger:model TransactionByIdResponse type TransactionByIDResponse struct { // active // Example: false Active bool `json:"active,omitempty"` // address update // Example: false AddressUpdate bool `json:"addressUpdate,omitempty"` // assigned // Example: true Assigned bool `json:"assigned,omitempty"` // assigned employee Id // Example: 5cabd4ba6218d148395b406f AssignedEmployeeID string `json:"assignedEmployeeId,omitempty"` // cart Cart *TransactionByIDResponseCart `json:"cart,omitempty"` // checkin time // Example: 1585432659695 CheckinTime int64 `json:"checkinTime,omitempty"` // checkout type // Example: Direct CheckoutType string `json:"checkoutType,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // complete after // Example: 1585441800000 CompleteAfter int64 `json:"completeAfter,omitempty"` // completed time // Example: 1585440892887 CompletedTime int64 `json:"completedTime,omitempty"` // create onfleet task // Example: true CreateOnfleetTask bool `json:"createOnfleetTask,omitempty"` // create tookan task // Example: false CreateTookanTask bool `json:"createTookanTask,omitempty"` // created // Example: 1585432659695 Created int64 `json:"created,omitempty"` // created by Id // Example: 5d1109b9874b44081f07df8f CreatedByID string `json:"createdById,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // delivery address DeliveryAddress *TransactionByIDResponseDeliveryAddress `json:"deliveryAddress,omitempty"` // delivery date // Example: 1585443600000 DeliveryDate int64 `json:"deliveryDate,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // end route date // Example: 1585440891404 EndRouteDate int64 `json:"endRouteDate,omitempty"` // end time // Example: 1585440891404 EndTime int64 `json:"endTime,omitempty"` // eta // Example: 0 Eta float64 `json:"eta,omitempty"` // fulfilling fulfillment // Example: false FulfillingFulfillment bool `json:"fulfillingFulfillment,omitempty"` // fulfillment step // Example: Prepare FulfillmentStep string `json:"fulfillmentStep,omitempty"` // id // Example: 5e7fc85343383208d7fbac3e ID string `json:"id,omitempty"` // loc // Example: [-118.05688211705355,33.80187413192708] Loc []float64 `json:"loc"` // locked // Example: false Locked bool `json:"locked,omitempty"` // member Id // Example: 5e7fc80143383208d7fba673 MemberID string `json:"memberId,omitempty"` // member signature MemberSignature *TransactionByIDResponseMemberSignature `json:"memberSignature,omitempty"` // memo Memo string `json:"memo,omitempty"` // metrc delivery submit status // Example: None MetrcDeliverySubmitStatus string `json:"metrcDeliverySubmitStatus,omitempty"` // metrc delivery submit time // Example: 0 MetrcDeliverySubmitTime int64 `json:"metrcDeliverySubmitTime,omitempty"` // metrc Id // Example: 17281252 MetrcID float64 `json:"metrcId,omitempty"` // metrc sale time // Example: 2020-03-29T00:14:52.887Z MetrcSaleTime string `json:"metrcSaleTime,omitempty"` // metrc submission complete time // Example: 0 MetrcSubmissionCompleteTime int64 `json:"metrcSubmissionCompleteTime,omitempty"` // metrc submission delete time // Example: 0 MetrcSubmissionDeleteTime int64 `json:"metrcSubmissionDeleteTime,omitempty"` // mileage // Example: 0 Mileage float64 `json:"mileage,omitempty"` // mileage calculated // Example: true MileageCalculated bool `json:"mileageCalculated,omitempty"` // modified // Example: 1585440893789 Modified int64 `json:"modified,omitempty"` // on fleet error OnFleetError string `json:"onFleetError,omitempty"` // on fleet task Id // Example: o7XchVifXLXF40qHK1LnVijP OnFleetTaskID string `json:"onFleetTaskId,omitempty"` // order tags // Example: ["REC Verified","Delivery"] OrderTags []string `json:"orderTags"` // override inventory Id // Example: 5c7e8c7b722ed607e61edb41 OverrideInventoryID string `json:"overrideInventoryId,omitempty"` // packed by // Example: 5d9384eca660c70822e3b1d0 PackedBy string `json:"packedBy,omitempty"` // packed date // Example: 1585432972448 PackedDate float64 `json:"packedDate,omitempty"` // paid // Example: true Paid bool `json:"paid,omitempty"` // paying with payment card // Example: false PayingWithPaymentCard bool `json:"payingWithPaymentCard,omitempty"` // payment edited time // Example: 0 PaymentEditedTime int64 `json:"paymentEditedTime,omitempty"` // points earned // Example: 0 PointsEarned float64 `json:"pointsEarned,omitempty"` // prepared by // Example: 5d1109b9874b44081f07df8f PreparedBy string `json:"preparedBy,omitempty"` // preparing fulfillment // Example: false PreparingFulfillment bool `json:"preparingFulfillment,omitempty"` // priority // Example: 14309 Priority float64 `json:"priority,omitempty"` // processed time // Example: 1585440892887 ProcessedTime int64 `json:"processedTime,omitempty"` // queue type // Example: Delivery QueueType string `json:"queueType,omitempty"` // refund payment options // Example: ["Credit","StoreCredit"] RefundPaymentOptions []string `json:"refundPaymentOptions"` // routing // Example: false Routing bool `json:"routing,omitempty"` // seller Id // Example: 5d1655750f9c6f07f744a78a SellerID string `json:"sellerId,omitempty"` // seller terminal Id // Example: 5d291e02bd20bf0800b3e816 SellerTerminalID string `json:"sellerTerminalId,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // short Id // Example: 457d176d ShortID string `json:"shortId,omitempty"` // start route date // Example: 1585432659695 StartRouteDate float64 `json:"startRouteDate,omitempty"` // start time // Example: 1585440863815 StartTime int64 `json:"startTime,omitempty"` // state // Example: 1 State float64 `json:"state,omitempty"` // status // Example: Completed Status string `json:"status,omitempty"` // terminal Id TerminalID string `json:"terminalId,omitempty"` // time zone // Example: America/Los_Angeles TimeZone string `json:"timeZone,omitempty"` // trace submit status // Example: Completed TraceSubmitStatus string `json:"traceSubmitStatus,omitempty"` // tracking status // Example: NotStarted TrackingStatus string `json:"trackingStatus,omitempty"` // trans no // Example: 14309 TransNo string `json:"transNo,omitempty"` // trans type // Example: Sale TransType string `json:"transType,omitempty"` // transaction refund status // Example: None TransactionRefundStatus string `json:"transactionRefundStatus,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: 0 AdjustmentAmount float64 `json:"adjustmentAmount,omitempty"` // after tax discount // Example: 0 AfterTaxDiscount float64 `json:"afterTaxDiscount,omitempty"` // after tax discount notes AfterTaxDiscountNotes string `json:"afterTaxDiscountNotes,omitempty"` // applied after tax discount // Example: 0 AppliedAfterTaxDiscount float64 `json:"appliedAfterTaxDiscount,omitempty"` // balance due // Example: 0 BalanceDue float64 `json:"balanceDue,omitempty"` // calc cart discount // Example: 5.4 CalcCartDiscount float64 `json:"calcCartDiscount,omitempty"` // cart discount notes CartDiscountNotes string `json:"cartDiscountNotes,omitempty"` // cash received // Example: 0 CashReceived float64 `json:"cashReceived,omitempty"` // change due // Example: 0 ChangeDue float64 `json:"changeDue,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // consumer type // Example: MedicinalThirdParty ConsumerType string `json:"consumerType,omitempty"` // created // Example: 1585432659695 Created int64 `json:"created,omitempty"` // credit card fee // Example: 0 CreditCardFee float64 `json:"creditCardFee,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // delivery discount // Example: 0 DeliveryDiscount float64 `json:"deliveryDiscount,omitempty"` // delivery discount type // Example: Cash DeliveryDiscountType string `json:"deliveryDiscountType,omitempty"` // delivery fee // Example: 0 DeliveryFee float64 `json:"deliveryFee,omitempty"` // discount // Example: 5.4 Discount float64 `json:"discount,omitempty"` // discount type // Example: Cash DiscountType string `json:"discountType,omitempty"` // enable credit card fee // Example: false EnableCreditCardFee bool `json:"enableCreditCardFee,omitempty"` // enable delivery fee // Example: false EnableDeliveryFee bool `json:"enableDeliveryFee,omitempty"` // final refund amt // Example: 0 FinalRefundAmt float64 `json:"finalRefundAmt,omitempty"` // id // Example: 5e7fc85343383208d7fbac3f ID string `json:"id,omitempty"` // items Items []*TransactionByIDResponseCartItemsItems0 `json:"items"` // modified // Example: 1585440891476 Modified int64 `json:"modified,omitempty"` // payment option // Example: Credit PaymentOption string `json:"paymentOption,omitempty"` // payment type // Example: Full PaymentType string `json:"paymentType,omitempty"` // point spent // Example: 0 PointSpent float64 `json:"pointSpent,omitempty"` // promo code PromoCode string `json:"promoCode,omitempty"` // promotion req logs PromotionReqLogs []*TransactionByIDResponseCartPromotionReqLogsItems0 `json:"promotionReqLogs"` // promotion reqs PromotionReqs []*TransactionByIDResponseCartPromotionReqsItems0 `json:"promotionReqs"` // refund amount // Example: 0 RefundAmount float64 `json:"refundAmount,omitempty"` // refund option // Example: Void RefundOption string `json:"refundOption,omitempty"` // refund order item requests RefundOrderItemRequests []string `json:"refundOrderItemRequests"` // request refund amt // Example: 0 RequestRefundAmt float64 `json:"requestRefundAmt,omitempty"` // round amt // Example: 0 RoundAmt float64 `json:"roundAmt,omitempty"` // storage location // Example: CashDrawer StorageLocation string `json:"storageLocation,omitempty"` // sub total // Example: 334 SubTotal float64 `json:"subTotal,omitempty"` // sub total discount // Example: 334 SubTotalDiscount float64 `json:"subTotalDiscount,omitempty"` // tax // Example: 0.08 Tax float64 `json:"tax,omitempty"` // tax result TaxResult *TransactionByIDResponseCartTaxResult `json:"taxResult,omitempty"` // tax round off type // Example: ONE_CENT TaxRoundOffType string `json:"taxRoundOffType,omitempty"` // tax table TaxTable *TransactionByIDResponseCartTaxTable `json:"taxTable,omitempty"` // tip amount // Example: 0 TipAmount float64 `json:"tipAmount,omitempty"` // total // Example: 430 Total float64 `json:"total,omitempty"` // total a l excise tax // Example: 0 TotalALExciseTax float64 `json:"totalALExciseTax,omitempty"` // total calc tax // Example: 96 TotalCalcTax float64 `json:"totalCalcTax,omitempty"` // total discount // Example: 0 TotalDiscount float64 `json:"totalDiscount,omitempty"` // total excise tax // Example: 0 TotalExciseTax float64 `json:"totalExciseTax,omitempty"` // total pre calc tax // Example: 0 TotalPreCalcTax float64 `json:"totalPreCalcTax,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this 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 } // 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 } // 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 // Example: 0 AvailableDiscountQty float64 `json:"availableDiscountQty,omitempty"` // calc cultivation tax // Example: 0 CalcCultivationTax float64 `json:"calcCultivationTax,omitempty"` // calc discount // Example: 0 CalcDiscount float64 `json:"calcDiscount,omitempty"` // calc pre tax // Example: 0 CalcPreTax float64 `json:"calcPreTax,omitempty"` // calc tax // Example: 4.0522 CalcTax float64 `json:"calcTax,omitempty"` // cogs // Example: 7 Cogs float64 `json:"cogs,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // cost // Example: 20.99 Cost float64 `json:"cost,omitempty"` // created // Example: 1585432681221 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // discount // Example: 0 Discount float64 `json:"discount,omitempty"` // discount notes DiscountNotes string `json:"discountNotes,omitempty"` // discount type // Example: Cash DiscountType string `json:"discountType,omitempty"` // discounted qty // Example: 0 DiscountedQty float64 `json:"discountedQty,omitempty"` // excise tax // Example: 0.3686 ExciseTax float64 `json:"exciseTax,omitempty"` // final price // Example: 20.99 FinalPrice float64 `json:"finalPrice,omitempty"` // finalized // Example: false Finalized bool `json:"finalized,omitempty"` // fulfilled // Example: true Fulfilled bool `json:"fulfilled,omitempty"` // id // Example: 5e7fc86913d34108c8fc6e6d ID string `json:"id,omitempty"` // ignore mix match // Example: false IgnoreMixMatch bool `json:"ignoreMixMatch,omitempty"` // mix matched // Example: false MixMatched bool `json:"mixMatched,omitempty"` // modified // Example: 1585440891572 Modified int64 `json:"modified,omitempty"` // order item Id // Example: 2022a978-4995-415d-9d8f-2cbf22766028 OrderItemID string `json:"orderItemId,omitempty"` // orig quantity // Example: 1 OrigQuantity float64 `json:"origQuantity,omitempty"` // override price // Example: 0 OverridePrice float64 `json:"overridePrice,omitempty"` // per unit refund amt // Example: 0 PerUnitRefundAmt float64 `json:"perUnitRefundAmt,omitempty"` // prepared qty // Example: 0 PreparedQty float64 `json:"preparedQty,omitempty"` // product Id // Example: 5de977fafe67a6082e6f2b26 ProductID string `json:"productId,omitempty"` // promotion reqs PromotionReqs []float64 `json:"promotionReqs"` // quantity // Example: 10 Quantity float64 `json:"quantity,omitempty"` // quantity logs QuantityLogs []*TransactionByIDResponseCartItemsItems0QuantityLogsItems0 `json:"quantityLogs"` // status // Example: Active Status string `json:"status,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax result TaxResult *TransactionByIDResponseCartItemsItems0TaxResult `json:"taxResult,omitempty"` // tax table TaxTable *TransactionByIDResponseCartItemsItems0TaxTable `json:"taxTable,omitempty"` // tax type // Example: Inherit TaxType string `json:"taxType,omitempty"` // total refund amount // Example: 0 TotalRefundAmount float64 `json:"totalRefundAmount,omitempty"` // total refund qty // Example: 0 TotalRefundQty float64 `json:"totalRefundQty,omitempty"` // unit price // Example: 20.99 UnitPrice float64 `json:"unitPrice,omitempty"` // unit qty // Example: 0 UnitQty float64 `json:"unitQty,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` // use unit qty // Example: false UseUnitQty bool `json:"useUnitQty,omitempty"` // weight key // Example: UNIT WeightKey string `json:"weightKey,omitempty"` } // Validate validates this 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 } // 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 } // 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 // Example: 5cacc1bb6218d174d3f17b31 BatchID string `json:"batchId,omitempty"` // id // Example: 1a7002e4-ac24-43a3-a84e-2c8af39aaa2a_5cabd4ba6218d148395b4067_5cacc1bb6218d174d3f17b31 ID string `json:"id,omitempty"` // inventory Id // Example: 5cabd4ba6218d148395b4067 InventoryID string `json:"inventoryId,omitempty"` // quantity // Example: 10 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 } // 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 } // 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 // Example: 1554826473345 Created int64 `json:"created,omitempty"` // cultivation tax result CultivationTaxResult *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult `json:"cultivationTaxResult,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5cacc4e96218d174d3f17c3a ID string `json:"id,omitempty"` // modified // Example: 1554826473345 Modified int64 `json:"modified,omitempty"` // total a l excise tax // Example: 96 TotalALExciseTax float64 `json:"totalALExciseTax,omitempty"` // total a l post excise tax // Example: 96 TotalALPostExciseTax float64 `json:"totalALPostExciseTax,omitempty"` // total city pre tax // Example: 0 TotalCityPreTax float64 `json:"totalCityPreTax,omitempty"` // total city tax // Example: 0 TotalCityTax float64 `json:"totalCityTax,omitempty"` // total county pre tax // Example: 0 TotalCountyPreTax float64 `json:"totalCountyPreTax,omitempty"` // total county tax // Example: 0 TotalCountyTax float64 `json:"totalCountyTax,omitempty"` // total excise tax // Example: 0 TotalExciseTax float64 `json:"totalExciseTax,omitempty"` // total fed pre tax // Example: 0 TotalFedPreTax float64 `json:"totalFedPreTax,omitempty"` // total fed tax // Example: 0 TotalFedTax float64 `json:"totalFedTax,omitempty"` // total n a l pre excise tax // Example: 0 TotalNALPreExciseTax float64 `json:"totalNALPreExciseTax,omitempty"` // total post calc tax // Example: 0 TotalPostCalcTax float64 `json:"totalPostCalcTax,omitempty"` // total pre calc tax // Example: 0 TotalPreCalcTax float64 `json:"totalPreCalcTax,omitempty"` // total state pre tax // Example: 0 TotalStatePreTax float64 `json:"totalStatePreTax,omitempty"` // total state tax // Example: 0 TotalStateTax float64 `json:"totalStateTax,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: 0 FlowerTaxOz float64 `json:"flowerTaxOz,omitempty"` // leaf tax oz // Example: 0 LeafTaxOz float64 `json:"leafTaxOz,omitempty"` // total cultivation tax // Example: 0 TotalCultivationTax float64 `json:"totalCultivationTax,omitempty"` // total flower oz // Example: 0 TotalFlowerOz float64 `json:"totalFlowerOz,omitempty"` // total flower tax // Example: 0 TotalFlowerTax float64 `json:"totalFlowerTax,omitempty"` // total leaf oz // Example: 0 TotalLeafOz float64 `json:"totalLeafOz,omitempty"` // total leaf tax // Example: 0 TotalLeafTax float64 `json:"totalLeafTax,omitempty"` } // Validate validates this transaction by ID response cart items items0 tax result cultivation tax result func (m *TransactionByIDResponseCartItemsItems0TaxResultCultivationTaxResult) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 // Example: false Active bool `json:"active,omitempty"` // city tax CityTax *TransactionByIDResponseCartItemsItems0TaxTableCityTax `json:"cityTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // consumer type // Example: MedicinalThirdParty ConsumerType string `json:"consumerType,omitempty"` // county tax CountyTax *TransactionByIDResponseCartItemsItems0TaxTableCountyTax `json:"countyTax,omitempty"` // created // Example: 1585440891598 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // federal tax FederalTax *TransactionByIDResponseCartItemsItems0TaxTableFederalTax `json:"federalTax,omitempty"` // id // Example: 5e7fe87be26bf108c9d189e1 ID string `json:"id,omitempty"` // modified // Example: 1585440891598 Modified int64 `json:"modified,omitempty"` // name // Example: Medicinal - Third Party Name string `json:"name,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // state tax StateTax *TransactionByIDResponseCartItemsItems0TaxTableStateTax `json:"stateTax,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax type // Example: Custom TaxType string `json:"taxType,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this 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 } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // active excise tax // Example: true ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891598 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: City DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189e2 ID string `json:"id,omitempty"` // modified // Example: 1585440891598 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 10 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: City Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this transaction by ID response cart items items0 tax table city tax func (m *TransactionByIDResponseCartItemsItems0TaxTableCityTax) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // active excise tax // Example: true ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891598 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: County DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189e3 ID string `json:"id,omitempty"` // modified // Example: 1585440891598 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: County Territory string `json:"territory,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: false Active bool `json:"active,omitempty"` // active excise tax // Example: false ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891598 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: Federal DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189e5 ID string `json:"id,omitempty"` // modified // Example: 1585440891598 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: Federal Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this transaction by ID response cart items items0 tax table federal tax func (m *TransactionByIDResponseCartItemsItems0TaxTableFederalTax) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // active excise tax // Example: true ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891598 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: State DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189e4 ID string `json:"id,omitempty"` // modified // Example: 1585440891598 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 9.5 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: State Territory string `json:"territory,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: 5.4 Amount float64 `json:"amount,omitempty"` // assigned // Example: false Assigned bool `json:"assigned,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1585440891535 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5e7fe87be26bf108c9d189d9 ID string `json:"id,omitempty"` // modified // Example: 1585440891535 Modified int64 `json:"modified,omitempty"` // promotion Id // Example: 5da25bd344ce2e084b72fe31 PromotionID string `json:"promotionId,omitempty"` // promotion type // Example: Cart PromotionType string `json:"promotionType,omitempty"` // stackable // Example: false Stackable bool `json:"stackable,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: true Assigned bool `json:"assigned,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1585440891508 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5e7fe87be26bf108c9d189d4 ID string `json:"id,omitempty"` // modified // Example: 1585440891508 Modified int64 `json:"modified,omitempty"` // promotion Id // Example: 5da25bd344ce2e084b72fe31 PromotionID string `json:"promotionId,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: 1585440891598 Created int64 `json:"created,omitempty"` // cultivation tax result CultivationTaxResult *TransactionByIDResponseCartTaxResultCultivationTaxResult `json:"cultivationTaxResult,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5e7fe87be26bf108c9d189ec ID string `json:"id,omitempty"` // modified // Example: 1585440891598 Modified int64 `json:"modified,omitempty"` // tax mapping info TaxMappingInfo *TransactionByIDResponseCartTaxResultTaxMappingInfo `json:"taxMappingInfo,omitempty"` // total a l excise tax // Example: 0 TotalALExciseTax float64 `json:"totalALExciseTax,omitempty"` // total a l post excise tax // Example: 4.05 TotalALPostExciseTax float64 `json:"totalALPostExciseTax,omitempty"` // total city pre tax // Example: 0 TotalCityPreTax float64 `json:"totalCityPreTax,omitempty"` // total city tax // Example: 5.26 TotalCityTax float64 `json:"totalCityTax,omitempty"` // total county pre tax // Example: 0 TotalCountyPreTax float64 `json:"totalCountyPreTax,omitempty"` // total county tax // Example: 0 TotalCountyTax float64 `json:"totalCountyTax,omitempty"` // total excise tax // Example: 0 TotalExciseTax float64 `json:"totalExciseTax,omitempty"` // total fed pre tax // Example: 0 TotalFedPreTax float64 `json:"totalFedPreTax,omitempty"` // total fed tax // Example: 0 TotalFedTax float64 `json:"totalFedTax,omitempty"` // total n a l pre excise tax // Example: 0 TotalNALPreExciseTax float64 `json:"totalNALPreExciseTax,omitempty"` // total post calc tax // Example: 14.31 TotalPostCalcTax float64 `json:"totalPostCalcTax,omitempty"` // total pre calc tax // Example: 0 TotalPreCalcTax float64 `json:"totalPreCalcTax,omitempty"` // total state pre tax // Example: 0 TotalStatePreTax float64 `json:"totalStatePreTax,omitempty"` // total state tax // Example: 5 TotalStateTax float64 `json:"totalStateTax,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: 0 FlowerTaxOz float64 `json:"flowerTaxOz,omitempty"` // leaf tax oz // Example: 0 LeafTaxOz float64 `json:"leafTaxOz,omitempty"` // plant tax oz // Example: 0 PlantTaxOz float64 `json:"plantTaxOz,omitempty"` // total cultivation tax // Example: 0 TotalCultivationTax float64 `json:"totalCultivationTax,omitempty"` // total flower oz // Example: 0 TotalFlowerOz float64 `json:"totalFlowerOz,omitempty"` // total flower tax // Example: 0 TotalFlowerTax float64 `json:"totalFlowerTax,omitempty"` // total leaf oz // Example: 0 TotalLeafOz float64 `json:"totalLeafOz,omitempty"` // total leaf tax // Example: 0 TotalLeafTax float64 `json:"totalLeafTax,omitempty"` // total plant oz // Example: 0 TotalPlantOz float64 `json:"totalPlantOz,omitempty"` // total plant tax // Example: 0 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 } // 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 } // 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 // Example: City City string `json:"City,omitempty"` // county // Example: County County string `json:"County,omitempty"` // federal // Example: Federal Federal string `json:"Federal,omitempty"` // state // Example: State 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 } // 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 } // 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 // Example: false Active bool `json:"active,omitempty"` // city tax CityTax *TransactionByIDResponseCartTaxTableCityTax `json:"cityTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // consumer type // Example: MedicinalThirdParty ConsumerType string `json:"consumerType,omitempty"` // county tax CountyTax *TransactionByIDResponseCartTaxTableCountyTax `json:"countyTax,omitempty"` // created // Example: 1585440891480 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // federal tax FederalTax *TransactionByIDResponseCartTaxTableFederalTax `json:"federalTax,omitempty"` // id // Example: 5e7fe87be26bf108c9d189cf ID string `json:"id,omitempty"` // modified // Example: 1585440891480 Modified int64 `json:"modified,omitempty"` // name // Example: Medicinal - Third Party Name string `json:"name,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // state tax StateTax *TransactionByIDResponseCartTaxTableStateTax `json:"stateTax,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax type // Example: Custom TaxType string `json:"taxType,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this 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 } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // active excise tax // Example: true ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891480 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: City DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189d0 ID string `json:"id,omitempty"` // modified // Example: 1585440891480 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 10 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: City Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this transaction by ID response cart tax table city tax func (m *TransactionByIDResponseCartTaxTableCityTax) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // active excise tax // Example: true ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891480 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: County DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189d1 ID string `json:"id,omitempty"` // modified // Example: 1585440891480 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: County Territory string `json:"territory,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: false Active bool `json:"active,omitempty"` // active excise tax // Example: false ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891480 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: Federal DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189d3 ID string `json:"id,omitempty"` // modified // Example: 1585440891480 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: Federal Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this transaction by ID response cart tax table federal tax func (m *TransactionByIDResponseCartTaxTableFederalTax) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // active excise tax // Example: true ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1585440891480 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // display name // Example: State DisplayName string `json:"displayName,omitempty"` // id // Example: 5e7fe87be26bf108c9d189d2 ID string `json:"id,omitempty"` // modified // Example: 1585440891480 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c7e8c7b722ed607e61edb1d ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 9.5 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: State Territory string `json:"territory,omitempty"` // updated // Example: false 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 } // 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 } // 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 // Example: 4331 Green Avenue Address string `json:"address,omitempty"` // address line2 AddressLine2 string `json:"addressLine2,omitempty"` // city // Example: Los Alamitos City string `json:"city,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // country // Example: US Country string `json:"country,omitempty"` // created // Example: 1585432659695 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5e7fc85343383208d7fbac40 ID string `json:"id,omitempty"` // modified // Example: 1585432659695 Modified int64 `json:"modified,omitempty"` // state // Example: CA State string `json:"state,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` // zip code // Example: 90720 ZipCode string `json:"zipCode,omitempty"` } // Validate validates this transaction by ID response delivery address func (m *TransactionByIDResponseDeliveryAddress) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 // Example: true Active bool `json:"active,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1585440877379 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5e7fe86dcdabfe08de901539 ID string `json:"id,omitempty"` // key // Example: e3ccaa24-63db-410b-b3aa-205259a04f52.png Key string `json:"key,omitempty"` // large URL // Example: https://connect-files-public.s3.amazonaws.com/e3ccaa24-63db-410b-b3aa-205259a04f52-800x800.png LargeURL string `json:"largeURL,omitempty"` // medium URL // Example: https://connect-files-public.s3.amazonaws.com/e3ccaa24-63db-410b-b3aa-205259a04f52-500x500.png MediumURL string `json:"mediumURL,omitempty"` // modified // Example: 1585440877379 Modified int64 `json:"modified,omitempty"` // name // Example: file Name string `json:"name,omitempty"` // priority // Example: 0 Priority float64 `json:"priority,omitempty"` // public URL // Example: https://connect-files-public.s3.amazonaws.com/e3ccaa24-63db-410b-b3aa-205259a04f52.png PublicURL string `json:"publicURL,omitempty"` // secured // Example: false Secured bool `json:"secured,omitempty"` // thumb URL // Example: https://connect-files-public.s3.amazonaws.com/e3ccaa24-63db-410b-b3aa-205259a04f52-200x200.png ThumbURL string `json:"thumbURL,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this transaction by ID response member signature func (m *TransactionByIDResponseMemberSignature) Validate(formats strfmt.Registry) error { return nil } // 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 } // 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 }